Selectable list of items
Selectable list of items
SELECTABLE_ITEMS - to allow selection (enable/disable) of items
CIRCULAR_SELECTION - make the list a circular one
HIDE_DISABLED_LIST_ITEMS - hide the items that are disabled
LIST_V_SCROLLBAR - to provide a vertical scroll bar
LIST_H_SCROLLBAR - to provide a horizontal scroll bar
MAX_SELECTED - do not allow more than maximum selectable items
__Items - linked list of items:
struct LItem {
char *Text;
short Flags;
long Value;
LItem *Next;
};
This list can be constructed using the following 2 functions:
LItem *NewLItem(char *__Text, long __Value, short __Flags, LItem *__ANextItem) which builds the entire list, and:
LItem *NewList(char **__Text, unsigned __Count)
which builds from a list of char*, containing __Count items,
a linked list of items
__Flags - flags
__Text - text
__Value - value