[doc] misc. patchs & small improvements
[scilab.git] / scilab / modules / gui / help / en_US / createWindow.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="createWindow">
3     <refnamediv>
4         <refname>createWindow</refname>
5         <refpurpose>create a window</refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>Syntax</title>
9         <synopsis>
10             f = createWindow();
11         </synopsis>
12     </refsynopsisdiv>
13     <refsection>
14         <title>Description</title>
15         <para>
16             This routine creates a graphic window with default properties :
17             <itemizedlist>
18                 <listitem>
19                     <para>dockable = "off"</para>
20                 </listitem>
21                 <listitem>
22                     <para>default_axes = "off"</para>
23                 </listitem>
24                 <listitem>
25                     <para>infobar_visible = "off"</para>
26                 </listitem>
27                 <listitem>
28                     <para>toolbar_visible = "off"</para>
29                 </listitem>
30                 <listitem>
31                     <para>menubar_visible = "off"</para>
32                 </listitem>
33             </itemizedlist>
34         </para>
35     </refsection>
36     <refsection>
37         <title>Examples</title>
38         <programlisting role="example"><![CDATA[
39 // Create a window
40 f = createWindow()
41 f.axes_size = [400 400];
42 uicontrol(f, "style", "pushbutton", "units", "normalized", "position", [0 0 0.5 0.5], "string", "Button", "horizontalalignment", "center");
43 uicontrol(f, "style", "text", "units", "normalized", "position", [0 0.5 0.5 0.5], "string", "Label", "horizontalalignment", "center");
44 uicontrol(f, "style", "radiobutton", "units", "normalized", "position", [0.5 0 0.5 0.5], "string", "Radiobutton", "horizontalalignment", "center", "groupname", "grouptest");
45 uicontrol(f, "style", "checkbox", "units", "normalized", "position", [0.5 0.5 0.5 0.5], "string", "Checkbox", "horizontalalignment", "center", "groupname", "grouptest");
46 ]]></programlisting>
47     </refsection>
48     <refsection role="see also">
49         <title>See also</title>
50         <simplelist type="inline">
51             <member>
52                 <link linkend="figure">figure</link>
53             </member>
54         </simplelist>
55     </refsection>
56     <refsection>
57         <title>History</title>
58         <revhistory>
59             <revision>
60                 <revnumber>5.5.0</revnumber>
61                 <revremark>
62                     Function <function>createWindow</function> introduced.
63                 </revremark>
64             </revision>
65         </revhistory>
66     </refsection>
67 </refentry>