class MASKING_DLL_DECLSPEC CompoundWidget

An intermediate virtual class for making compound widgets.

Inheritance:

CompoundWidget - Dialog - Widget - Rect


Protected Methods

[more]void FillObjectList(std::vector<MAS_OBJ_LIST* > &objList, int (*cmp)(const MAS::Widget* , const MAS::Widget* ), MAS::Widget* focusObject, int &c)
Supposed to fill a list with objects that can be tabbed to.
[more]bool MsgWantTab()
Returns true to indicate a compound widget can take input focus.


Documentation

An intermediate virtual class for making compound widgets. A compound widget is basically a dialog but some of its wunctions are slightly different from a normal user dialog. This class serves as an intermediate layer between a dialog and compound widgets (such as listboxes, combo boxes, etc) All compound widgets should be derived from this class instead of the dialog class directly.
ovoid FillObjectList(std::vector<MAS_OBJ_LIST* > &objList, int (*cmp)(const MAS::Widget* , const MAS::Widget* ), MAS::Widget* focusObject, int &c)
Supposed to fill a list with objects that can be tabbed to. In this class the implementation of this function is empty. Every widget should take care of forwarding input focus to the right subwidget when tabbed to by itself by overloading MsgGotfocus() and giving focus to the appropriate widget with GiveFocusTo().

obool MsgWantTab()
Returns true to indicate a compound widget can take input focus. A derived compound widget should overload this function and return false in case it does not take input focus.


Direct child classes:
SpinBox
Scroller
ScrollBox
ListBox
ComboBox

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++