Code Key
Types
The windows and gadgets are
stored using TYPES. This means that all the setup functions (eg GUI_BUTTUN() )
return a type variable. So keep it in mind.
As most of the gadgets have generic variables passed to them I'll explain the common ones here to stop alot of repeat typing :) They are as follows:
WIN_ID
= Window ID of Gadgets Window
X,Y =
Position of Gadget relative to the top-left of the Window
W,H = Width/Height of Gadget
CAP$ = Gadget Caption - text dispalyed on/in the actual gadget
LST$ = List of text-items (see below)
ACT = 0/1 Gadget active on startup
HELP$ = Gadget help-box text
Also, any parameters encolsed
in [ ] are optional and do not need to be passed.
Text Lists
Some gadgets allow the user to select from a list of items. This list of items is passed to the gadget function as a single string, with each item seperated by "#". Eg. "Selection 1#Selection 2#Selection 3#". This is shown as LST$ in the function descriptions.
Those gadgets which can either be On or Off (eg. Tick Boxes) can belong to a Group. These groups restrict the gadgets so that only 1 gadget can be On at any one time. To specify that a gadget is in a group (and to link all gadgets in one group together) each "groupable" gadget has a Group Number. If this Group Number is set to greater than 0, then this is the group that this gadget belongs to. The Group Number of a gadget is denoted by GROUP where applicable.