Widgets SCROLLCONTAINER - thica/ORCA-Remote GitHub Wiki

ScollContainer

The scrollcontainer widget is a container widget to place lines of wifget in a scrollable widget The scrollcontainer widget is based on the picture widget, please use the documentation for the common attributes

The "CONTAINERVALUE" value is added to the action pars which refers to the widget text The "CONTAINERINDEX" index is added to the action pars which refers to the line order, eg: "0" is the first line in the list The "CONTAINERVARINDEX" index is added to the action pars which refers to the index number of the vararray

The list of lines within the container is build from the vararry of minimum one widget within the line definition. So, one widget must have a caption with an array variable You can place all kind of widgets (with the exception of dropdowns in a row/line of the container All widgets got an index "[x]" added to the widget name, to manage them thought the actions

The following attributes are additional attributes to common picture attributes

Attribute Description
type fixed: needs to be "SCOLLCONTAINER". Capital letters!
container A string, which identifies the container AND all elements to place into the row of the container
rowheight The rowheigth of a full line within the container: The line definition (all widgets in a line) must fir the this number

Below you see an example for a container definition

<element name='Anchor1' type='ANCHOR' posx='%2' posy='%20' width='%30' height='%60' >
<elements>
<element name="ScollBox Left" type="SCROLLCONTAINER" picturenormal="background boxes" container="container_1" rowheight="%25"  />
<element name='Anchor1 Inner' type='ANCHOR'  height='%25' >
<element name="First Button"       type="BUTTON" posx="left"  posy="top"    height="%100" width="%40" picturenormal='button wide*'    container="container_1" caption="First Button" action="Show Page" actionpars='{"pagename":"Page_Main"}'  />
<element name="Second Button Top"  type="BUTTON" posx="right" posy="top"    height="%50" width="%60" picturenormal="button wide*"     container="container_1" caption="$var(scrollcontent_button1_text[])" action="Show Page" actionpars='{"pagename":"Page_Main"}'  />
<element name="Second Button Down" type="BUTTON" posx="right" posy="bottom" height="%50" width="%60" picturenormal="button wide*"     container="container_1" caption="$var(scrollcontent_button2_text[])" action="Show Page" actionpars='{"pagename":"Page_Main"}'  />
</element>
</elements>
</element>
⚠️ **GitHub.com Fallback** ⚠️