LeftEdge |
indicates the left boundary of the list box. |
TopEdge |
indicates the top boundary of the list box. |
Width |
indicates the width of the list box. |
Height |
indicates the height of the list box. |
ItemHeight |
specifies how tall each item is. This is divided into Height
to determine how many items are displayed at once. |
ScrollID |
This is the GadgetID number you would like the scroll bar to
have. A scroll gadget will be created with this number in its
GadgetID field. Later, when your program receives GADGETUP
events with this GadgetID, call ScrollList to scroll the
display. |
ListID |
This is the GadgetID number for the area comprising the list
display. Later, when your program receives a GADGETUP event
with this GadgetID, this will indicate the user is clicking on
an item in the list, so call GetListItem which will highlight
that item and return a pointer to it. |
ClickUpID |
Yet another GadgetID number, this is for the arrow gadget at
the top of the scroll bar, indicating the user wants to scroll
the display down one. When you receive a GADGETUP event with
this id, you call the routine ClickList. |
ClickDownID |
The last GadgetID number, this is for the down arrow below the
scroll bar. This is also used to call ClickList. |
BorderPen |
The pen number for the border of the box that surrounds the
list. |
FillPen |
The pen number for the inside of the list box. |
TopItem |
If you have a list of items to work with, put the pointer to
the top one here. If not, this must be NULL. |
TopDisplay |
This is a pointer to the first item that should be displayed.
Item This might be the top item, or it could be somewhere in
the middle of the list. If there is no list, make this NULL.
When the list is scrolled, this is changed by InovaTools to
point to the new top of display. |
ActiveItem |
This is the currently highlighted item. If there is none, make
it NULL. |
Window |
You must provide a pointer to the window this list is being
displayed in. |
DrawRoutine |
This is a pointer to a routine that you provide to display
information about an item. InovaTools will call this routine
to display an item in the list box. The parameters that are
passed to this routine are:
RastPort |
The rastport to draw in. |
Listltem |
A pointer to the item to display. |
XPos |
X coordinate for drawing. |
YPos |
Y coordinate for drawing. |
HighLight |
A flag that is set to
- TRUE if this is to be highlighted,
- FALSE if not.
How you go about highlighting is up to you.
|
InovaTools draws the list by calling this routine for each of
the items that are displayed, giving each a different Y
coordinate as it runs down the list.
Your routine is responsible for clipping. What it draws should
not be wider than the ListInfo Width parameter, nor taller
than the ListInfo ItemHeight parameter.
|