BBGadTools

BBSetVSliderState(Id,Entry)


Description:

With this Command can you set the State of a Vertical Slider. (Scrollbar)
You can set a number. This number is now the current Entry. The Graphics of the
Scrollbar will now redraw on the new Position. This Position is now the Current Entry
that you can get with the "=BBGetVSliderState()" Command.
Please Read in addition to it also BBVSlider(), BBSetVSliderEntrys(), BBVSliderHit(), BBGetVSliderState(), BBRemoveVSlider() and BBSliderUse()

Parameter:

ID = ID-Number of the Slider!
Entry = State to set in Slider. (As Current Entry)

Example:

BBVSlider(1,30,50,200,10) ; Maximally 10 Entrys are later in Lister visible!
BBSetVSliderEntrys(1,150) ; Slider calculates 150 Entrys. (Scrollbar will resize automatically)
BBSetVSliderState(1,100) ; The State will set to "100". (As Current Entry)
A=BBGetVSliderState(1) ; Max. returned Value is 141. (141-150 = 10 Entrys visible)

Back to the Menu