Difference between revisions of "LavishGUI:checkbox (Element Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
=== What is a Check Box? ===
 
=== What is a Check Box? ===
A checkbox is a box with two states (checked and unchecked) that when changed performs an action.
+
A checkbox is a box with two states (checked and unchecked) that when changed performs an action. [[LavishGUI:lguicheckbox_%28Data_Type%29|lguicheckbox (Data Type)]] provides access to checkboxes via LavishScript
 
== Using Check Boxes ==
 
== Using Check Boxes ==
 
Check Boxes are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the check box-specific properties described below.
 
Check Boxes are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the check box-specific properties described below.

Latest revision as of 22:35, 15 December 2005

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>

See Also