FLpackFLTK:ContainersFLpackFLpack
Provides the functionality of compressing and aligning FLTK widgets.
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/pluginsFLpack provides the functionality of compressing and aligning widgets.
SyntaxFLpack iwidth, iheight, ix, iy, itype, ispace, iborderInitializationiwidth -- 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).
itype -- an integer number that modifies the appearance of the target widget.
The itype argument expresses the type of packing:
0 - vertical1 - horizontalispace -- sets the space between the widgets.
iborder -- 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 borderPerformanceFLpack provides the functionality of compressing and aligning widgets.
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.
Examples
The following example:
FLpanel "Panel1",450,300,100,100
FLpack 400,300, 10,40,0,15,3
gk1, ihs1 FLslider "FLslider 1", 500, 1000, 2 ,1, -1, 300,15, 20,50
gk2, ihs2 FLslider "FLslider 2", 300, 5000, 2 ,3, -1, 300,15, 20,100
gk3, ihs3 FLslider "FLslider 3", 350, 1000, 2 ,5, -1, 300,15, 20,150
gk4, ihs4 FLslider "FLslider 4", 250, 5000, 1 ,11, -1, 300,30, 20,200
gk5, ihs5 FLslider "FLslider 5", 220, 8000, 2 ,1, -1, 300,15, 20,250
gk6, ihs6 FLslider "FLslider 6", 1, 5000, 1 ,13, -1, 300,15, 20,300
gk7, ihs7 FLslider "FLslider 7", 870, 5000, 1 ,15, -1, 300,30, 20,350
FLpackEndFLpanelEnd
...will produce this result, when resizing the window:
FLpack.
FLpack.
See AlsoFLgroup,
FLgroupEnd,
FLpackEnd,
FLpanel,
FLpanelEnd,
FLscroll,
FLscrollEnd,
FLtabs,
FLtabsEndCreditsAuthor: &namegabriel;New in version 4.22