User Tools

Site Tools


built_in:buttons

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:buttons [2015/03/26 09:01]
octazid [Options]
built_in:buttons [2018/07/21 05:36] (current)
Line 20: Line 20:
 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                                                                                                                                                                                 
-| Button.GetAbsHeight()                                        +| Button.GetAbsHeight()                                                                                                                                                                                                                                           
-| Button.GetAbsWidth()                                         +| Button.GetAbsWidth()                                                                                                                                                                                                                                            
-| Button.GetHeight()                                           +| Button.GetHeight()                                                                                                                                                                                                                                              
-| Button.GetPosition()                                         +| Button.GetPosition()                                                                                                                                                                                                                                            
-| Button.GetText()                                             +| Button.GetText()                                                    Fetches the recent caption (text) of a button. Returns a string.                                                                                                                            
-| Button.GetTextSize( mode )                                   +| Button.GetTextSize( mode )                                                                                                                                                                                                                                      
-| Button.GetType()                                             +| Button.GetType()                                                                                                                                                                                                                                                
-| Button.GetVisibility()                                       +| Button.GetVisibility()                                                                                                                                                                                                                                          
-| Button.GetWidth()                                            +| Button.GetWidth()                                                                                                                                                                                                                                               
-| Button.SetFontFile( file )                                   +| Button.SetFontFile( file )                                                                                                                                                                                                                                      
-| Button.SetHtml( html )                                       +| Button.SetHtml( html )                                                                                                                                                                                                                                          
-| Button.SetMargins( left,top,right,bottom )                   +| Button.SetMargins( left,top,right,bottom )                                                                                                                                                                                                                      
-| Button.SetOnTouch( callback )                                | +| Button.SetOnTouch( callback )                                                                                                                                                                                                                                   
-| Button.SetOnTouchEx( p1 )                                    +| Button.SetPadding( left,top,right,bottom )                                                                                                                                                                                                                      
-| Button.SetPadding( left,top,right,bottom )                   +| Button.SetPosition( left, top, width, height )                                                                                                                                                                                                                  
-| Button.SetPosition( left, top, width, height )               +| Button.SetScale( x,y )                                                                                                                                                                                                                                          
-| Button.SetScale( x,y )                                       +| Button.SetSize( width, height )                                                                                                                                                                                                                                 | 
-| Button.SetSize( width, height )                              +| Button.SetStyle(color1,color2,radius,strokeClr,strokeWidth,shadow)  | Used with **Custom** option                                                                                                                                                                 
-| Button.SetText( text )                                       +| Button.SetText( text )                                              Changes the caption (text) displayed in a button to the given string value. Example: <code>Button.SetText("This is a string.");   </code>                                                   
-| Button.SetTextColor( colorcode )                             +| Button.SetTextColor( colorcode )                                    Sets the text color of a button. Use css-style color code, i.e. "#ffffff" for white.                                                                                                        
-| Button.SetTextShadow( radius,dx,dy,color )                   +| Button.SetTextShadow( radius,dx,dy,color )                                                                                                                                                                                                                      
-| Button.SetTextSize( size,mode )                              +| Button.SetTextSize( size,mode )                                                                                                                                                                                                                                 
-| Button.SetVisibility( HideShow )                             |+| Button.SetVisibility( HideShow )                                    "Hide" hides the button without affecting the rest of the layout. "Show" displays the button. "Gone" hides the button totally, so that the layout will be rearranged. (See example below.)  |
  
 ===== Options ===== ===== Options =====
  
-^Option ^Description ^ +Options      ^ Description                                          
-|Alum| Display the Button in aluminuim style| +| Alum         | Display the Button in aluminum style                 
-|FillX| Fill the layout width| +| FillX        | Fill the layout width                                
-|Gray| Display the Button in Gray Color| +| Gray         | Display the Button in Gray Color                     
-|NoSound| Play no sound, if the button will be touched|+| NoSound      | Play no sound, if the button will be touched         | 
 +| Custom       | [[sample_code:button_styles|Custom Buttons sample]] 
 +| NoPad        | Removes default padding of custom buttons            | 
 +| FontAwesome  | Use Font-Awesome icons                               | 
 +| Html         | Enable HTML in button-text                           |
  
 ---- ----
built_in/buttons.1427360507.txt.gz · Last modified: 2015/03/26 17:01 (external edit)