| 1 | |
| 2 | <refentry id="FLsetVal"> |
| 3 | <indexterm id="IndexFLsetVal"><primary>FLsetVal</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Other</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLsetVal</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>FLsetVal</refname> |
| 13 | <refpurpose> |
| 14 | Sets the value of a FLTK valuator at control-rate. |
| 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>FLsetVal</emphasis> is almost identical to <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>. Except it operates at k-rate and it affects the target valuator only when <emphasis>ktrig</emphasis> is set to a non-zero value. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis><command>FLsetVal</command> ktrig, kvalue, ihandle</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <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. |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Performance</title> |
| 42 | <para> |
| 43 | <emphasis>ktrig</emphasis> -- triggers the opcode when different than 0. |
| 44 | </para> |
| 45 | <para> |
| 46 | <emphasis>kvalue</emphasis> -- Value to set the widget to. |
| 47 | </para> |
| 48 | <note> |
| 49 | <emphasis>FLsetVal</emphasis> is not fully implemented yet, and may crash in certain cases (e.g. when setting the value of a widget connected to a <link linkend="FLvalue"><citetitle>FLvalue</citetitle></link> widget- in this case use two separate <emphasis>FLsetVal</emphasis>) |
| 50 | </note> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See Also</title> |
| 55 | <para> |
| 56 | <link linkend="FLcolor"><citetitle>FLcolor</citetitle></link>, |
| 57 | <link linkend="FLcolor2"><citetitle>FLcolor2</citetitle></link>, |
| 58 | <link linkend="FLhide"><citetitle>FLhide</citetitle></link>, |
| 59 | <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>, |
| 60 | <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>, |
| 61 | <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>, |
| 62 | <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>, |
| 63 | <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>, |
| 64 | <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>, |
| 65 | <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>, |
| 66 | <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>, |
| 67 | <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>, |
| 68 | <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>, |
| 69 | <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>, |
| 70 | <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>, |
| 71 | <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>, |
| 72 | <link linkend="FLshow"><citetitle>FLshow</citetitle></link> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>Credits</title> |
| 78 | <para>Author: &namegabriel;</para> |
| 79 | <para>New in version 4.22</para> |
| 80 | </refsect1> |
| 81 | </refentry> |