FLtextFLTK:ValuatorsFLtextFLtext
A FLTK widget opcode that creates a textbox.
Description
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.
The plugin repository can be found here: https://github.com/csound/pluginsFLtext allows the user to modify a parameter value by directly typing it into a text field.
Syntaxkout, ihandle FLtext "label", imin, imax, istep, itype, iwidth, \
iheight, ix, iyInitializationihandle -- a handle value (an integer number) that unequivocally references a corresponding widget. This is used by other opcodes that modify a widget's properties (see Modifying FLTK Widget Appearance). It is automatically output by FLtext and must not be set by the user label. (The user label is a double-quoted string containing some user-provided text placed near the widget.)
label -- a double-quoted string containing some user-provided text, placed near corresponding widget.
imin -- minimum value of output range.
imax -- maximum value of output range.
istep -- a floating-point number indicating the increment of valuator value corresponding to the mouse dragging. The istep argument allows the user to arbitrarily slow mouse motion, enabling arbitrary precision.
itype -- an integer number denoting the appearance of the valuator.
The itype argument can be set to the following values:
1 - normal behaviour2 - dragging operation is suppressed, instead it will appear two arrow buttons. A mouse-click on one of these buttons can increase/decrease the output value.3 - text editing is suppressed, only mouse dragging modifies the output value.iwidth -- width of widget.
iheight -- height of widget.
ix -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
iy -- vertical position of upper left corner of the valuator, relative to the upper
left corner of corresponding window (expressed in pixels).
Performancekout -- output value
FLtext allows the user to modify a parameter value by directly typing it into a text field:
FLtext.
FLtext.
Its value can also be modified by clicking on it and dragging the mouse horizontally. The istep argument allows the user to arbitrarily set the response on mouse dragging.
Examples
Here is an example of the FLtext opcode. It uses the file FLtext.csd.
Example of the FLtext opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoFLcount,
FLjoy,
FLknob,
FLroller,
FLsliderCreditsAuthor: &namegabriel;New in version 4.22Example written by Iain McCurdy, edited by &namekevin;.