This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:togglebuttons [2015/03/08 10:02] octazid completed |
built_in:togglebuttons [2015/03/22 13:23] octazid [Table] |
||
---|---|---|---|
Line 4: | Line 4: | ||
===== Description ===== | ===== Description ===== | ||
- | Create toggle buttons using the CreateToggle method of the app object: | + | Create toggle buttons using the **CreateToggle** method of the **[[built_in: |
< | < | ||
You can allow the toggle button to auto-size by leaving out the dimensions or you can specify a **width** and **height** as decimal fractions of the screen' | You can allow the toggle button to auto-size by leaving out the dimensions or you can specify a **width** and **height** as decimal fractions of the screen' | ||
Line 35: | Line 35: | ||
Some controls use the same methods.\\ | Some controls use the same methods.\\ | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |ToggleButton.Destroy() | | | + | | ToggleButton.Destroy() |
- | |ToggleButton.GetAbsHeight() | | | + | | ToggleButton.GetAbsHeight() |
- | |ToggleButton.GetAbsWidth() | | | + | | ToggleButton.GetAbsWidth() |
- | |ToggleButton.GetChecked() | | | + | | ToggleButton.GetChecked() |
- | |ToggleButton.GetHeight() | | | + | | ToggleButton.GetHeight() |
- | |ToggleButton.GetPosition() | | | + | | ToggleButton.GetPosition() |
- | |ToggleButton.GetText() | | | + | | ToggleButton.GetText() |
- | |ToggleButton.GetTextSize( mode ) | | | + | | ToggleButton.GetTextSize( mode ) | | |
- | |ToggleButton.GetType() | | | + | | ToggleButton.GetType() |
- | |ToggleButton.GetVisibility() | | | + | | ToggleButton.GetVisibility() |
- | |ToggleButton.GetWidth() | | | + | | ToggleButton.GetWidth() |
- | |ToggleButton.Release() | | | + | | ToggleButton.SetChecked( checked ) | | |
- | |ToggleButton.SetChecked( checked ) | | | + | | ToggleButton.SetMargins( left, |
- | |ToggleButton.SetMargins( left, | + | | ToggleButton.SetOnTouch( callback ) |
- | |ToggleButton.SetOnTouch( callback ) | | | + | | ToggleButton.SetPadding( left, top, right, bottom ) |
- | |ToggleButton.SetPadding( left, top, right, bottom ) | | | + | | ToggleButton.SetPosition( left, top, width, height ) | | |
- | |ToggleButton.SetPosition( left, top, width, height ) | | | + | | ToggleButton.SetScale( x,y ) | | |
- | |ToggleButton.SetScale( x,y ) | | | + | | ToggleButton.SetSize( width, height ) |
- | |ToggleButton.SetSize( width, height ) | | | + | | ToggleButton.SetText( text ) | | |
- | |ToggleButton.SetText( text ) | | | + | | ToggleButton.SetTextColor( colorCode ) | | |
- | |ToggleButton.SetTextColor( colorCode ) | | | + | | ToggleButton.SetTextSize( size,mode ) |
- | |ToggleButton.SetTextSize( size,mode ) | | | + | | ToggleButton.SetVisibility( HideShow ) | | |
- | |ToggleButton.SetVisibility( HideShow ) | | | + |