Functions | |
void | SmartWin::WidgetMenu::appendCheckedItem (unsigned id, const SmartUtil::tstring &name, itsVoidMenuFunctionTakingUInt eventHandler) |
Appends a checked menu item. | |
void | SmartWin::WidgetMenu::appendItem (unsigned int id, const SmartUtil::tstring &name, itsVoidMenuFunctionTakingUInt eventHandler) |
Appends a "normal" menu item. |
void appendCheckedItem | ( | unsigned | id, | |
const SmartUtil::tstring & | name, | |||
itsVoidMenuFunctionTakingUInt | eventHandler | |||
) | [inherited] |
Appends a checked menu item.
eventHandler is the function that will receive the "click" event from the menu item.
Event handler's signature must be "void foo( WidgetMenuPtr, unsigned int )" and it must be contained as a member
of the class that is defined as the EventHandlerClass, normally either the WidgetWindow derived class or the class derived from WidgetMenu.
See e.g. WidgetFun for an example.
The reason to why we have this "id" is because the same event handler can be defined for several menu items
even in fact across menu objects, therefore this number should be unique across the application.
void appendItem | ( | unsigned int | id, | |
const SmartUtil::tstring & | name, | |||
itsVoidMenuFunctionTakingUInt | eventHandler | |||
) | [inherited] |
Appends a "normal" menu item.
eventHandler is the function that will receive the "click" event from the menu item.
Event handler's signature must be "void foo( WidgetMenuPtr, unsigned int )" and it must be contained as a member
of the class that is defined as the EventHandlerClass, normally either the WidgetWindow derived class or the class derived from WidgetMenu.
See e.g. WidgetFun for an example.
The reason to why we have this "id" is because the same event handler can be defined for several menu items
even in fact across menu objects, therefore this number should be unique across the application.