okStaticBox
This is a simple control to display static text within a panel. It also displays a box which is helpful to distinguish parts of a control panel.
ELEMENT | TYPE | DESCRIPTION |
---|---|---|
position | POSITION | Position of the top left corner. |
size | SIZE | Size in pixels. |
label | TEXT | Label text. |
XML Example
<object class="okStaticBox">
<label>Static Box</label>
<position>90,25</position>
<size>60,20</size>
</object>
Code language: HTML, XML (xml)
Lua Scripting
This component can be updated from the scripts code using its SetLabel()
method similarly to okStaticText, please refer to the example there.
All XML components that support Lua scripting also inherit from the Control class. Please refer to the FrontPanel Scripting documentation for more information on this class.