FLlabelFLTK:AppearanceFLlabelFLlabel
A FLTK opcode that modifies the appearance of a text label.
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/plugins
Modifies a set of parameters related to the text label appearence of a widget (i.e. size, font, alignment and color of corresponding text).
SyntaxFLlabel isize, ifont, ialign, ired, igreen, iblueInitializationisize -- size of the font of the target widget. Normal values are in the order of 15. Greater numbers enlarge font size, while smaller numbers reduce it.
ifont -- sets the the font type of the label of a widget.
Legal values for ifont argument are:
1 - Helvetica (same as Arial under Windows)2 - Helvetica Bold3 - Helvetica Italic4 - Helvetica Bold Italic5 - Courier6 - Courier Bold7 - Courier Italic8 - Courier Bold Italic9 - Times10 - Times Bold11 - Times Italic12 - Times Bold Italic13 - Symbol14 - Screen15 - Screen Bold16 - Dingbatsialign -- sets the alignment of the label text of the widget.
Legal values for ialign argument are:
1 - align center2 - align top3 - align bottom4 - align left5 - align right6 - align top-left7 - align top-right8 - align bottom-left9 - align bottom-rightired -- The red color of the target widget. The range for each RGB component is 0-255
igreen -- The green color of the target widget. The range for each RGB component is 0-255
iblue -- The blue color of the target widget. The range for each RGB component is 0-255
PerformanceFLlabel modifies a set of parameters related to the text label appearance of a widget, i.e. size, font, alignment and color of corresponding text. This opcode affects (almost) all widgets defined next its location. A user can put several instances of FLlabel in front of each widget he intends to modify. However, to modify a particular widget, it is better to use the opcode belonging to the second type (i.e. those containing the ihandle argument).
The influence of FLlabel on the next widget can be turned off by using -1 as its only argument. FLlabel is designed to modify text attributes of a group of related widgets.
See AlsoFLcolor2,
FLhide,
FLlabel,
FLsetAlign,
FLsetBox,
FLsetColor,
FLsetColor2,
FLsetFont,
FLsetPosition,
FLsetSize,
FLsetText,
FLsetTextColor,
FLsetTextSize,
FLsetTextType,
FLsetVal_i,
FLsetVal,
FLshowCreditsAuthor: &namegabriel;New in version 4.22