This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:buttons [2015/07/25 14:43] 85.179.90.81 A reference of methods regarding buttons. |
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 | + | ^ Method |
- | | Button.GetAbsHeight() | + | | Button.GetAbsHeight() |
- | | Button.GetAbsWidth() | + | | Button.GetAbsWidth() |
- | | Button.GetHeight() | + | | Button.GetHeight() |
- | | Button.GetPosition() | + | | Button.GetPosition() |
- | | Button.GetText() | + | | Button.GetText() |
- | | 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, | + | | Button.SetMargins( left, |
- | | Button.SetOnTouch( callback ) | + | | Button.SetOnTouch( callback ) |
- | | Button.SetOnTouchEx( p1 ) | + | | Button.SetPadding( left, |
- | | Button.SetPadding( left, | + | | 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, |
- | | Button.SetText( text ) |Changes the caption (text) displayed in a button to the given value. | + | | Button.SetText( text ) | Changes the caption (text) displayed in a button to the given string |
- | | Button.SetTextColor( colorcode ) |Sets the text color of a button. Use css-style color code, i.e. "# | + | | Button.SetTextColor( colorcode ) | Sets the text color of a button. Use css-style color code, i.e. "# |
- | | Button.SetTextShadow( radius, | + | | Button.SetTextShadow( radius, |
- | | Button.SetTextSize( size,mode ) | + | | Button.SetTextSize( size,mode ) |
- | | Button.SetVisibility( HideShow ) | | | + | | Button.SetVisibility( HideShow ) | " |
===== Options ===== | ===== Options ===== | ||
- | ^Option | + | ^ Options |
- | |Alum| Display the Button in aluminuim | + | | Alum |
- | |FillX| Fill the layout width| | + | | FillX | Fill the layout width | |
- | |Gray| Display the Button in Gray Color| | + | | Gray |
- | |NoSound| Play no sound, if the button will be touched| | + | | NoSound |
+ | | Custom | ||
+ | | NoPad | Removes default padding of custom buttons | ||
+ | | FontAwesome | ||
+ | | Html | Enable HTML in button-text | ||
---- | ---- |