FLpanelFLTK:ContainersFLpanelFLpanel
Creates a window that contains FLTK widgets.
Description
Creates a window that contains FLTK widgets.
SyntaxFLpanel "label", iwidth, iheight [, ix] [, iy] [, iborder] [, ikbdcapture] [, iclose]Initializationlabel -- a double-quoted string containing some user-provided text, placed near the corresponding widget.
iwidth -- width of widget.
iheight -- height of widget.
ix (optional) -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
iy (optional) -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
iborder (optional) -- border type of the container. It is expressed by means of an integer number chosen from the following:
0 - no border1 - down box border2 - up box border3 - engraved border4 - embossed border5 - black line border6 - thin down border7 - thin up borderikbdcapture (default = 0) -- If this flag is set to 1, keyboard events are captured by the window (for use with sensekey and FLkeyIn)
iclose (default = 0) -- If this flag is set to anything other than 0, the close button of the window is disabled, and the window cannot be closed by the user directly. It will close when csound exits.
Performance
Containers are useful to format the graphic appearance of the widgets. The most important container is FLpanel, that actually creates a window. It can be filled with other containers and/or valuators or other kinds of widgets.
There are no k-rate arguments in containers.
FLpanel creates a window. It must be followed by the opcode FLpanelEnd when all widgets internal to it are declared. For example:
FLpanel "PanelPluto",450,550,100,100 ;***** start of container
gk1,ih1 FLslider "FLslider 1", 500, 1000, 2 ,1, -1, 300,15, 20,50
gk2,ih2 FLslider "FLslider 2", 300, 5000, 2 ,3, -1, 300,15, 20,100
gk3,ih3 FLslider "FLslider 3", 350, 1000, 2 ,5, -1, 300,15, 20,150
gk4,ih4 FLslider "FLslider 4", 250, 5000, 1 ,11,-1, 300,30, 20,200
FLpanelEnd ;***** end of container
will output the following result:
FLpanel.
FLpanel.
If the ikbdcapture flag is set, the window captures keyboard events, and sends them to all sensekey. This flag modifies the behavior of sensekey, and makes it receive events from the FLTK window instead of stdin.
Examples
Here is an example of the FLpanel opcode. It uses the file FLpanel.csd.
Example of the FLpanel opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoFLgroup,
FLgroupEnd,
FLpack,
FLpackEnd,
FLpanelEnd,
FLscroll,
FLscrollEnd,
FLtabs,
FLtabsEnd,
sensekeyCreditsAuthor: &namegabriel;New in version 4.22Example written by Iain McCurdy, edited by &namekevin;.