AMOSi:Button

From Amiga Coding
Revision as of 01:51, 17 November 2007 by Spellcoder (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Defines a button for your dialogue boxes or control panels.


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


BU number,x,y,width,height,setting,minimum,maximum;[draw][change]


number is the number of the button you wish to create starting from one. If you want to link several button together you can assign them all to the same ID number.


x,y set the coordinates of the top left hand corner of your button, relative to the BAse point.


width,height hold the size of the button in pixels.


setting enters the initial position for your button.


minimum,maximum hold the smallest and highest values the setting can take.


[draw] is a list of Interface instructions which will be used to display your button on the screen. These instructions will be called automatically whenever the position value changes.


[change] is a list of instructions which will be called up when the button is selected by the user. If these commands change the position value, the button will be redrawn using the previous [draw] routine.