This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:togglebuttons [2014/09/17 18:42] stevegarman |
built_in:togglebuttons [2015/01/07 09:53] octazid [Methods] |
||
---|---|---|---|
Line 9: | Line 9: | ||
You can get the state of the toggle button at any time using the GetChecked method of the button. The button state is also passed into your OnTouch callback function as a parameter every time the button is touched. | You can get the state of the toggle button at any time using the GetChecked method of the button. The button state is also passed into your OnTouch callback function as a parameter every time the button is touched. | ||
===== Methods ===== | ===== Methods ===== | ||
+ | Some controls use the same methods.\\ | ||
+ | For examples of the **[[same methods]]** look here. | ||
^Method ^Description ^ | ^Method ^Description ^ | ||
- | |btn.GetChecked| | | + | |ToggleButton.Destroy() | | |
- | |btn.GetHeight| | | + | |ToggleButton.GetAbsHeight() | | |
- | |btn.GetText| | | + | |ToggleButton.GetAbsWidth() | | |
- | |btn.GetVisibility| | | + | |ToggleButton.GetChecked() | | |
- | |btn.GetWidth| | | + | |ToggleButton.GetHeight() | | |
- | |btn.Release| | | + | |ToggleButton.GetPosition() | | |
- | |btn.SetBackColor| | | + | |ToggleButton.GetText() | | |
- | |btn.SetBackGradient| | | + | |ToggleButton.GetTextSize( mode ) | | |
- | |btn.SetBackGradientRadial| | | + | |ToggleButton.GetType() |
- | |btn.SetBackground| | | + | |ToggleButton.GetVisibility() | | |
- | |btn.SetChecked| | | + | |ToggleButton.GetWidth() | | |
- | |btn.SetMargins| | | + | |ToggleButton.Release() | | |
- | |btn.SetOnTouch| | | + | |ToggleButton.SetBackColor( p1 ) | | |
- | |btn.SetPadding| | | + | |ToggleButton.SetBackGradient( p1, |
- | |btn.SetPosition| | | + | |ToggleButton.SetBackGradientRadial( p1, |
- | |btn.SetSize| | | + | |ToggleButton.SetBackground( p1,p2 ) | | |
- | |btn.SetText| | | + | |ToggleButton.SetChecked( p1 ) | | |
- | |btn.SetTextColor| | | + | |ToggleButton.SetMargins( left, |
- | |btn.SetTextSize| | | + | |ToggleButton.SetOnTouch( p1 ) | | |
- | |btn.SetVisibility| | | + | |ToggleButton.SetPadding( p1,p2,p3,p4 ) | | |
+ | |ToggleButton.SetPosition( p1,p2,p3,p4 ) | | | ||
+ | |ToggleButton.SetScale( x,y ) | | | ||
+ | |ToggleButton.SetSize( p1,p2 ) | | | ||
+ | |ToggleButton.SetText( p1 ) | | | ||
+ | |ToggleButton.SetTextColor( p1 ) | | | ||
+ | |ToggleButton.SetTextSize( size,mode ) | | | ||
+ | |ToggleButton.SetVisibility( p1 ) | | |