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/08 10:39]
octazid [Description]
built_in:buttons [2018/07/20 21:36]
administrator old revision restored (2018/05/21 00:13)
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.Destroy() | | +| Button.GetAbsHeight()                                                                                                                                                                                                                                           
-|Button.GetAbsHeight() | | +| Button.GetAbsWidth()                                                                                                                                                                                                                                            
-|Button.GetAbsWidth() | | +| Button.GetHeight()                                                                                                                                                                                                                                              
-|Button.GetHeight() | | +| Button.GetPosition()                                                                                                                                                                                                                                            
-|Button.GetPosition() | | +| Button.GetText()                                                    Fetches the recent caption (text) of a button. Returns a string.                                                                                                                            
-|Button.GetText() | | +| Button.GetTextSize( mode )                                                                                                                                                                                                                                      
-|Button.GetTextSize( mode ) | | +| Button.GetType()                                                                                                                                                                                                                                                
-|Button.GetType() | | +| Button.GetVisibility()                                                                                                                                                                                                                                          
-|Button.GetVisibility() | | +| Button.GetWidth()                                                                                                                                                                                                                                               
-|Button.GetWidth() | +| Button.SetFontFile( file )                                                                                                                                                                                                                                      
-|Button.Release() | | +| Button.SetHtml( html )                                                                                                                                                                                                                                          
-|Button.SetBackColor( color ) | | +| Button.SetMargins( left,top,right,bottom )                                                                                                                                                                                                                      
-|Button.SetBackGradient( color1,color2,color3,p4,p5,p6,p7 ) | | +| Button.SetOnTouch( callback )                                                                                                                                                                                                                                   
-|Button.SetBackGradientRadial( x,y,r,color1,color2,color3,p7 ) | | +| Button.SetPadding( left,top,right,bottom )                                                                                                                                                                                                                      
-|Button.SetBackground( imagefile,options ) | +| Button.SetPosition( left, top, width, height )                                                                                                                                                                                                                  
-|Button.SetFontFile( file ) | | +| Button.SetScale( x,y )                                                                                                                                                                                                                                          
-|Button.SetHtml( html ) | | +| Button.SetSize( width, height )                                                                                                                                                                                                                                 | 
-|Button.SetMargins( left,top,right,bottom ) | | +| Button.SetStyle(color1,color2,radius,strokeClr,strokeWidth,shadow)  | Used with **Custom** option                                                                                                                                                                 
-|Button.SetOnTouch( callback ) | +| 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.SetOnTouchEx( p1 ) | +| Button.SetTextColor( colorcode )                                    Sets the text color of a button. Use css-style color code, i.e. "#ffffff" for white.                                                                                                        
-|Button.SetPadding( left,top,right,bottom ) | | +| Button.SetTextShadow( radius,dx,dy,color )                                                                                                                                                                                                                      
-|Button.SetPosition( left, top, width, height ) | | +| Button.SetTextSize( size,mode )                                                                                                                                                                                                                                 
-|Button.SetScale( x,y ) | | +| 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.)  |
-|Button.SetSize( width, height ) | | +
-|Button.SetText( text ) | | +
-|Button.SetTextColor( colorcode ) | | +
-|Button.SetTextShadow( radius,dx,dy,color ) | | +
-|Button.SetTextSize( size,mode ) | | +
-|Button.SetVisibility( HideShow ) | |+
  
 ===== 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         | 
 +| 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.txt · Last modified: 2018/07/21 05:36 (external edit)