File: dialog.dem

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (28 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
x_message(['x_message: Simple example of message ';
// Copyright INRIA
'First row of comments';
'Second row';
'etc...';])

x_dialog('x_dialog: trial','                ')
x_dialog('Trial           ','3.1592653')
x_dialog(['trial           ';'trial1';'trial2';'trial3';'trial4';..
'trial6';'trial7'],'[0 1 2 3]')

x_message('trial')
x_message(['trial';'trial1';'trial2';'trial3';'trial4';'trial6';'trial7';..
'trial3';'trial4';'trial6';'trial7';'trial3';'trial4';'trial6';'trial7'])

x_choose(['trial';'trial1';'trial2';'trial3';'trial4';'trial7';..
'trial3';'trial4';'trial6';'trial7';'trial3';'trial4';'trial6'],..
'selection (click on one item --> returns the item number)')

x_mdialog(['here: your message';...
           '(edit the boxes below --> ouput: edited boxes)'],...
['first row';'second row';'etc...'],...
['value1';'value2';'value3'])

n=5;m=4;mat=rand(n,m);
row='row';labelv=row(ones(1,n))+string(1:n);
col='col';labelh=col(ones(1,m))+string(1:m);
new=evstr(x_mdialog('Matrix to edit',labelv,labelh,string(mat)))