Difference between revisions of "LavishGUI:lguiscrollbar (Data Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
 
+
This data type provides and controls data for ISUI scrollbars.
 
== Members ==
 
== Members ==
 
* [[DataType:int|int]] '''Value''' : the value of the scrollbar
 
* [[DataType:int|int]] '''Value''' : the value of the scrollbar
Line 12: Line 12:
  
 
== Inherits ==
 
== Inherits ==
[[ISSession:isuielement (Data Type)|isuielement]]
+
[[LavishGUI:lguielement_%28Data_Type%29|lguielement]]
  
 
== Returns ==
 
== Returns ==
Same as '''isuielement.Name'''
+
Same as '''lguielement.Name'''
  
 
== Examples ==
 
== Examples ==
Line 26: Line 26:
 
===Set Value of a scrollbar===
 
===Set Value of a scrollbar===
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetValue[10]
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetValue[10]
:Sets '''Value''' of the scrollbar to 10
+
:This command sets the '''Value''' of the scrollbar to 10
 
===Raise Value of a scrollbar===
 
===Raise Value of a scrollbar===
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:RaiseValue[20]
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:RaiseValue[20]
:Raises '''Value''' of the scrollbar from 10 to 30
+
:This command raises the '''Value''' of the scrollbar from 10 to 30
 
===Lower Value of a scrollbar===
 
===Lower Value of a scrollbar===
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:LowerValue[5]
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:LowerValue[5]
:Lowers '''Value''' of the scrollbar by from 30 to 25
+
:This command lowers the '''Value''' of the scrollbar by from 30 to 25
 
===Set Range of a scrollbar===
 
===Set Range of a scrollbar===
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetRange[550]
 
*UIElement[console].FindUsableChild[Vertical,Scrollbar]:SetRange[550]
:Sets Range of the scrollbar to 550
+
:This command sets the '''Range''' of the scrollbar to 550
  
 
== See Also ==
 
== See Also ==
 +
*[[LavishGUI]]
 +
* [[LavishGUI:console_%28Element_Type%29]]
 +
* [[LavishGUI:textentry_%28Element_Type%29]]
 +
* [[LavishGUI:listbox_%28Element_Type%29]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
  
{{DT-Stub}}
+
[[Category:LavishGUI]]
[[Category:Inner Space]]
 
[[Category:Inner Space Session]]
 
[[Category:Inner Space Session Data Types]]
 

Latest revision as of 23:25, 15 December 2005

Description

This data type provides and controls data for ISUI scrollbars.

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

lguielement

Returns

Same as lguielement.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]
This command sets the Value of the scrollbar to 10

Raise Value of a scrollbar

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

Lower Value of a scrollbar

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

Set Range of a scrollbar

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

See Also