User Tools

Site Tools


built_in:togglebuttons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 21:23] (current)
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:app|app]]** object:
 <code>btn = app.CreateToggle( text, width, height, options );</code> <code>btn = app.CreateToggle( text, width, height, options );</code>
 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's width and height. 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's width and height.
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                                                ^ Description  
-|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,top,right,bottom )                   
-|ToggleButton.SetMargins( left,top,right,bottom ) | | +| 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 ) | |+
built_in/togglebuttons.1425808935.txt.gz · Last modified: 2015/03/08 18:02 (external edit)