LavishGUI:lguibutton (Data Type)

From Lavish Software Wiki
Revision as of 22:23, 29 August 2005 by Beefalo (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

Description

Members

  • string Text : button text
  • bool Down : TRUE if button is pressed
  • isuifont Font : font object the button is using

Methods

  • SetText[text] : sets the text on the button

Returns

Same as Text

Examples

Retrieve text on a button

  • echo Text on button: ${UIElement[test].FindChild[buttontest].Text}
Output
Text on button: I am a test button

Display if a button is pressed

  • echo Button Pressed? ${UIElement[test].FindChild[buttontest].Down}
Output
Button Pressed? FALSE

Display a buttons font

  • echo Button font: ${UIElement[test].FindChild[buttontest].Font}
Output
Button font: terminal

Set text on a button

  • $UIElement[test].FindChild[buttontest]:SetText[Button Text V2.0]
  • echo Text on button: ${UIElement[test].FindChild[buttontest].Text}
Output
Text on Button: Button Text V2.0


See Also