Difference between revisions of "AMOSi:Horizontal Slider"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 17 November 2007

Draws a working horizontal slider bar on the screen.


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


HS 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/width 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/width 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.