Difference between revisions of "AMOSi:Active List"

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

Generates a selection box which can be used to produce a wide variety of file-selectors, or slider boxes.


AL zone,x,y,width,height,array address,first item,flag,paper,pen;[changes]


x,y are the coordinates of the window on the screen. x is rounded to the nearest 16.


width,height enter the width and height of the list window in characters.


array address holds the address of an array which you've previously installed into your Interface program using the ARRAY and VDIALOG commands from Basic.


first item is the number of the first item in the list to be displayed.


flag is a bitmap containing three bits.


Bit 0: If it's one AMOS adds a number to each item before it's
displayed. Normally the count starts from zero.


Bit 1: Used with bit 0. It starts the count from one.


Bit 2: If this is zero, the item will be selected the moment it's
highlighted with the mouse. If it's set to one, you'll need
to click on the item first.


paper,pen hold the colours of the item text and the window background.


[changes] is a list of Interface commands which will be executed automatically whenever an item is selected from the box.