BBGadTools
=BBGetHSliderState(Id)
Description:
With this Command can you get the State of a Horizontal Slider. (Scrollbar)
The Returned Value is the first Char left, thats showing in your Lister.
For Example: If you have a Lister thats Shows 10 Letters, and the returned Value is 15,
you must Draws the Chars from 15-24. (= 10 Chars visible). If you sets e.g. with
BBSetHSliderEntrys() maximally 20 Chars, the max. returned value is 11. (Chars 11-20 are visible)
Please read in addition to it also BBHSlider(), BBSetHSliderEntrys(), BBHSliderHit(), BBSetHSliderState(), BBRemoveHSlider() and BBSliderUse()
Parameter:
ID = ID-Number of the Slider!
Example:
BBHSlider(1,30,50,200,10) ; Maximally 10 Chars are later in Lister visible!
BBSetHSliderEntrys(1,150) ; Slider calculates 150 Chars. (Scrollbar will resize automatically)
A=BBGetHSliderState(1) ; Max. returned Value is 141. (141-150 = 10 Chars visible)
Back to the Menu