| 1 | |
| 2 | <refentry id="FLsetText"> |
| 3 | <indexterm id="IndexFLsetText"><primary>FLsetText</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Appearance</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLsetText</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>FLsetText</refname> |
| 13 | <refpurpose> |
| 14 | Sets the label of a FLTK widget. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac. |
| 22 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 23 | <para> |
| 24 | <emphasis>FLsetText</emphasis> sets the label of the target widget to the double-quoted text string provided with the <emphasis>itext</emphasis> argument. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis><command>FLsetText</command> "itext", ihandle</synopsis> |
| 31 | <synopsis><command>FLsetText</command> istr, ihandle</synopsis> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Initialization</title> |
| 36 | <para> |
| 37 | <emphasis><quote>itext</quote></emphasis> -- a double-quoted string denoting the text of the label of the widget. |
| 38 | </para> |
| 39 | <para> |
| 40 | <emphasis>istr</emphasis> -- an i-value that denotes a string via strset denoting the text of the label of the widget. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>ihandle</emphasis> -- an integer number (used as unique identifier) taken from the output of a previously located widget opcode (which corresponds to the target widget). It is used to unequivocally identify the widget when modifying its appearance with this class of opcodes. The user must not set the <emphasis>ihandle</emphasis> value directly, otherwise a Csound crash will occur. |
| 45 | </para> |
| 46 | </refsect1> |
| 47 | <refsect1> |
| 48 | <title>Examples</title> |
| 49 | <para> |
| 50 | Here is an example of the FLsetText opcode. It uses the file <ulink url="examples/FLsetText.csd"><citetitle>FLsetText.csd</citetitle></ulink>. |
| 51 | |
| 52 | <example> |
| 53 | <title>Example of the FLsetText opcode.</title> |
| 54 | |
| 55 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 56 | <xi:include href="examples-xml/FLsetText.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 57 | </example> |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | <refsect1> |
| 61 | <title>See Also</title> |
| 62 | <para> |
| 63 | <link linkend="FLcolor2"><citetitle>FLcolor2</citetitle></link>, |
| 64 | <link linkend="FLhide"><citetitle>FLhide</citetitle></link>, |
| 65 | <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>, |
| 66 | <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>, |
| 67 | <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>, |
| 68 | <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>, |
| 69 | <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>, |
| 70 | <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>, |
| 71 | <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>, |
| 72 | <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>, |
| 73 | <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>, |
| 74 | <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>, |
| 75 | <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>, |
| 76 | <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>, |
| 77 | <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>, |
| 78 | <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link>, |
| 79 | <link linkend="FLshow"><citetitle>FLshow</citetitle></link> |
| 80 | </para> |
| 81 | </refsect1> |
| 82 | |
| 83 | <refsect1> |
| 84 | <title>Credits</title> |
| 85 | <para>Author: &namegabriel;</para> |
| 86 | <para>New in version 4.22</para> |
| 87 | </refsect1> |
| 88 | </refentry> |