Xterminal Home Page | Main page |
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 XtList::GetItemsNumber()
virtual LItem* GetValue()
virtual void InitScrollBar()
virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
virtual int ProcessMessage(XMessage *__Event)
virtual int ProcessMouseEvent(XMouseEvent *__Event)
virtual void Run()
virtual void SetState(int __Mask, int __BoolValue)
virtual void SetValue(LItem *__Items)