<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="uicontrol" xml:lang="ja">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
+ xmlns:scilab="http://www.scilab.org" xml:id="uicontrol" xml:lang="ja">
<refnamediv>
<refname>uicontrol</refname>
<refpurpose>グラフィックユーザーインターフェイスオブジェクトを作成
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
-f=figure();
// 図を作成
-h=uicontrol(f,'style','listbox', ...
- 'position', [10 10 150 160]);
+f = scf();
+
// リストボックスを作成
-set(h, 'string', "item 1|item 2|item3");
-// リストを埋める
-set(h, 'value', [1 3]);
-// リストで要素1と3を選択
-close(f);
-// close the figure
+h = uicontrol(f,'style','listbox','position', [10 10 150 160]);
+
+// Set labels
+h.string = "item 1|item 2|item 3";
+
+// Set (max-min)>1 to allow multiple selection, and select items 1 and 3
+set(h, "min",0, "max",2, "value", [1 3]);
]]></programlisting>
<para>uicontrol関数はオーバーロードできます</para>
<programlisting role="example"><![CDATA[