LavishGUI:lguiscrollbar (Data Type)

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

Description

Members

  • int Value : the value of the scrollbar
  • int Range : the range of the scrollbar
  • bool Vertical : TRUE if the scrollbar is up and down instead of left to right

Methods

  • SetValue[#] : sets Value to <#>
  • RaiseValue[#] : raises Value by <#>
  • LowerValue[#] : lowers Value by <#>
  • SetRange[#] : sets Range to <#>

Inherits

isuielement

Returns

Same as isuielement.Name

Examples

Display scrollbar's value and range

  • echo Value: ${UIElement[console].FindUsableChild[Vertical,Scrollbar].Value}
  • echo Range: ${UIElement[console].FindUsableChild[Vertical,Scrollbar].Range}
Output
Value: 0
Range: 500

Set Value of a scrollbar

  • UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetValue[10]
Sets Value of the scrollbar to 10

Raise Value of a scrollbar

  • UIElement[console].FindUsableChild[Vertical,Scrollbar]:RaiseValue[20]
Raises Value of the scrollbar from 10 to 30

Lower Value of a scrollbar

  • UIElement[console].FindUsableChild[Vertical,Scrollbar]:LowerValue[5]
Lowers Value of the scrollbar by from 30 to 25

Set Range of a scrollbar

  • UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetRange[550]
Sets Range of the scrollbar to 550

See Also