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
__Items - linked list of items:
struct LItem {
char *Text;
int Value;
LItem *Next;
};
This list can be constructed using the following 2 functions:
LItem *NewLItem(char *__Text, int __Value, 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
~XtList()
virtual void Draw()
virtual unsigned GetItemsNumber()
virtual int GetValue(unsigned __Item)
virtual LItem* GetValue()
virtual void InitScrollBar()
virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
virtual bool ProcessMessage(XMessage *__Event)
virtual bool ProcessMouseEvent(XMouseEvent *__Event)
virtual int Run()
virtual void SetState(unsigned long __Mask, bool __BoolValue)
virtual void SetValue(LItem *__Items)
virtual void SetValue(unsigned __Item, unsigned __Value)
__Value - value