Inherited by WidgetTextBox, WidgetTextBox< EventHandlerClass, MessageMapPolicy >, WidgetTextBox< EventHandlerClass, MessageMapPolicy, SmartWin::RichTextBox< EventHandlerClass, MessageMapPolicy > >, WidgetTextBox< Parent, MessageMapPolicy >, WidgetWindowBase, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyDialogWidget >, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >, and WidgetWindowBase< EventHandlerClass, unUsed >.
Public Member Functions | |
void | onChar (typename MessageMapType::itsBoolFunctionTakingInt eventHandler) |
Setting the event handler for the "char" event. |
E.g. the WidgetTextBox can trap "char events" therefore they realize the AspectChar through inheritance.
void onChar | ( | typename MessageMapType::itsBoolFunctionTakingInt | eventHandler | ) |
Setting the event handler for the "char" event.
If supplied event handler is called when control has the focus and character event occurs
parameter passed is int which is the character of the nonsystem key being pressed. Return value must be of type bool, if event handler returns true event is defined as "handled" meaning the system will not try itself to handle the event.
Certain widgets, such as WidgetTextBox, will not report VK_RETURN unless you include ES_WANTRETURN in the style field of of the creational structure passed when you createTextBox( cs ).