Debian Codegraph @

opcodes/flexecbutton.xml

raw symbols SCIP
1
2 <refentry id="FLexecButton">
3 <indexterm id="IndexFLexecButton"><primary>FLexecButton</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLexecButton</refentrytitle>
7 </refmeta>
8
9
10 <refnamediv>
11 <refname>FLexecButton</refname>
12 <refpurpose>
13 A FLTK widget opcode that creates a button that executes a command.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 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.
21 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
22 <para>
23 A FLTK widget opcode that creates a button that executes a command. Useful
24 for opening up HTML documentation as About text or to start a separate
25 program from an FLTK widget interface.
26 </para>
27
28 <warning>
29 <title>Warning</title>
30 <para>
31 Because any command can be executed, the user is advised to be very
32 careful when using this opcode and when running orchestras by others
33 using this opcode.
34 </para>
35 </warning>
36 </refsect1>
37
38 <refsect1>
39 <title>Syntax</title>
40 <synopsis>ihandle <command>FLexecButton</command> &quot;command&quot;, iwidth, iheight, ix, iy</synopsis>
41 </refsect1>
42
43 <refsect1>
44 <title>Initialization</title>
45 <para>
46 <emphasis>ihandle</emphasis>
47 -- a handle value (an integer number) that unequivocally references a
48 corresponding widget. This is used by other opcodes that modify a widget's
49 properties (see
50 <link linkend="ControlFltkAppearance"><citetitle>Modifying FLTK Widget Appearance</citetitle></link>). It is automatically output by <emphasis>FLexecButton</emphasis>.
51 </para>
52
53 <para>
54 <emphasis><quote>command</quote></emphasis> -- a double-quoted string containing a command to execute.
55 </para>
56
57 <para>
58 Notice that with <emphasis>FLexecButton</emphasis>, the default text for the button is &quot;About&quot; and it is necessary to call the <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>
59 opcode to change the text of the button.
60 </para>
61
62
63 <para>
64 <emphasis>iwidth</emphasis> -- width of widget.
65 </para>
66
67 <para>
68 <emphasis>iheight</emphasis> -- height of widget.
69 </para>
70
71 <para>
72 <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
73 </para>
74
75 <para>
76 <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
77 </para>
78
79 </refsect1>
80
81 <refsect1>
82 <title>Examples</title>
83 <para>
84 Here is an example of the FLexecButton opcode. It uses the file <ulink url="examples/FLexecButton.csd"><citetitle>FLexecButton.csd</citetitle></ulink>.
85
86 <example>
87 <title>Example of the FLexecButton opcode.</title>
88 <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>
89 <xi:include href="examples-xml/FLexecButton.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
90 </example>
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>See Also</title>
96 <para>
97 <link linkend="FLbutton"><citetitle>FLbutton</citetitle></link>,
98 <link linkend="FLbox"><citetitle>FLbox</citetitle></link>,
99 <link linkend="FLbutBank"><citetitle>FLbutBank</citetitle></link>,
100 <link linkend="FLprintk"><citetitle>FLprintk</citetitle></link>,
101 <link linkend="FLprintk2"><citetitle>FLprintk2</citetitle></link>,
102 <link linkend="FLvalue"><citetitle>FLvalue</citetitle></link>
103 </para>
104 </refsect1>
105
106 <refsect1>
107 <title>Credits</title>
108 <para>Author: &namesteven;</para>
109 <para>Example by: Jonathan Murphy</para>
110 <para>New in version 5.05</para>
111 </refsect1>
112 </refentry>