<?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: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="x_dialog">
    <refnamediv>
        <refname>x_dialog</refname>
        <refpurpose>Dialog for interactive multi-lines input.</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>result=x_dialog(labels,valueini)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>labels</term>
                <listitem>
                    <para>column vector of strings, comment for dialog</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>valueini</term>
                <listitem>
                    <para>n column vector of strings, initial value suggested</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>result</term>
                <listitem>
                    <para>User answer: n column vector of strings if returned with "Ok" button or [] if returned with "Cancel" button</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>Opens a dialog for interactive multi-lines input.</para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
gain=evstr(x_dialog('Value of gain ?','0.235'))
x_dialog(['Method';'Enter sampling period'],'1')
m=evstr(x_dialog('Enter a 3x3 matrix',['[0 0 0';'0 0 0';'0 0 0]']))
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="x_mdialog">x_mdialog</link>
            </member>
            <member>
                <link linkend="x_matrix">x_matrix</link>
            </member>
            <member>
                <link linkend="evstr">evstr</link>
            </member>
            <member>
                <link linkend="execstr">execstr</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
