LavishGUI:checkbox (Element Type)
Jump to navigation
Jump to search
Contents
Introduction
What is a Check Box?
A checkbox is a box with two states (checked and unchecked) that when changed performs an action. lguicheckbox (Data Type) provides access to checkboxes via LavishScript
Using Check Boxes
Check Boxes are descendants of the base element type. Any attributes of the base element type may be applied in addition to the check box-specific properties described below.
Check Box-Specific Properties
- Font
- Font reference (Name, Size, Color)
- Text
- Text to be displayed on the button
- Texture
- Texture displayed when the unchecked control is in its normal, unpressed state
- TexturePressed
- Texture displayed while the unchecked control is being pressed
- TextureHover
- Texture displayed while the mouse is over the unpressed, unchecked control
- TextureChecked
- Texture displayed when the checked control is in its normal, unpressed state
- TextureCheckedPressed
- Texture displayed while the checked control is being pressed
- TextureCheckedHover
- Texture displayed while the mouse is over the unpressed, checked control
Examples
Example code
<checkbox name='TestCheckbox'> <Font> <Name>terminal</Name> <Size>30</Size> <Color>FF0000FF</Color> </Font> <Width>133</Width> <Height>23</Height> <Texture Filename='CheckBox-Up.png' /> <TextureHover Filename='CheckBox-Highlight.png' /> <TexturePressed Filename='CheckBox-Up.png' /> <TextureChecked Filename='CheckBox-Down.png' /> <TextureCheckedHover Filename='CheckBox-DownHighlight.png' /> <TextureCheckedPressed Filename='CheckBox-Down.png' /> </checkbox>