Difference between revisions of "AMOSi:Vertical Slider"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 17 November 2007

an example can be found on AMOSPro_Tutorial:Tutorials/Interface/Sliders.AMOS


Draws a working vertical slider bar on the screen.


VS zone number,x,y,width,height,position,trigger,total,step;[changes];


x,y = coordinates of the top left of the slider bar relative to the screen BAse.


width,height are the dimensions of the slider bar in pixels.


position set the initial position. Allowable position values range from 0 to "total"


trigger enters the size of the movable block inside your slider bar in units of total/height pixels.


total sets the maximum value which will be returned by the slider. Allowable positions range from 1 to total, with each "step" representing a movement of total/height pixels.


step controls the distance which will be moved whenever the user clicks on the background area of the slider.


[changes] holds a list of Interface commands which will be executed whenever the slider is moved by the user.