BBGadTools
BBSetHSliderState(Id,Char)
Description:
With this Command can you set the State of a Horizontal Slider. (Scrollbar)
You can set a number. This number is now the current char. The Graphics of the
Scrollbar will now redraw on the new Position. This Position is now the Current Char
that you can get with the "=BBGetHSliderState()" Command.
Please Read in addition to it also BBHSlider(), BBSetHSliderEntrys(), BBHSliderHit(), BBGetHSliderState(), BBRemoveHSlider() and BBSliderUse()
Parameter:
ID = ID-Number of the Slider!
Char = State to set in Slider. (As Current Char)
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)
BBSetHSliderState(1,100) ; The State will set to "100". (As Current Char)
A=BBGetHSliderState(1) ; Max. returned Value is 141. (141-150 = 10 Chars visible)
Back to the Menu