13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="demo_choose">
15
<refname>demo_choose</refname>
16
<refpurpose> create a dialog box for the choice of options </refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>num = demo_choose(fil)</synopsis>
23
<title>Description</title>
25
The function demo_choose create a dialog box for the choice of options. It
26
takes as argument the binary file 'fil'. This file is built by a .sce file
27
written like below. It shall contain the variables 'choice', an array of text
28
within bracket (the different options), and 'titl', the title of the dialog
29
box. After that, the .sce file shall save both variables in the binary file
31
Before the use of demo_choose, the .sce file shall be executed.
32
The function demo_choose returns the number of line chosen in the options
37
<title>Examples</title>
38
<programlisting role="example"><![CDATA[
15
<refname>demo_choose</refname>
16
<refpurpose> create a dialog box for the choice of options </refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>num = demo_choose(fil)</synopsis>
23
<title>Description</title>
25
The function demo_choose create a dialog box for the choice of options. It
26
takes as argument the binary file 'fil'. This file is built by a .sce file
27
written like below. It shall contain the variables 'choice', an array of text
28
within bracket (the different options), and 'titl', the title of the dialog
29
box. After that, the .sce file shall save both variables in the binary file
31
Before the use of demo_choose, the .sce file shall be executed.
32
The function demo_choose returns the number of line chosen in the options
37
<title>Examples</title>
38
<programlisting role="example"><![CDATA[
39
39
exec('SCI/demos/control/pid/pid_ch_2.sce');
40
40
[n]=demo_choose('SCI/demos/control/pid/pid_ch_2.bin');
49
49
]]></programlisting>
51
<refsection role="see also">
52
<title>See Also</title>
53
<simplelist type="inline">
55
<link linkend="x_choose">x_choose</link>
58
<link linkend="demo_mdialog">demo_mdialog</link>
51
<refsection role="see also">
52
<title>See Also</title>
53
<simplelist type="inline">
55
<link linkend="x_choose">x_choose</link>
58
<link linkend="demo_mdialog">demo_mdialog</link>