File: dialog.dem

package info (click to toggle)
scilab 4.1.2-6
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny
  • size: 113,992 kB
  • ctags: 65,732
  • sloc: ansic: 406,468; fortran: 242,412; xml: 223,812; tcl: 46,703; sh: 10,945; ml: 9,441; makefile: 4,697; cpp: 1,354; java: 926; csh: 260; yacc: 247; perl: 130; lex: 126; asm: 72; lisp: 30
file content (28 lines) | stat: -rw-r--r-- 1,028 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'])

tk_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)))