Functions | |
void | SmartWin::WidgetTreeView::onValidateEditLabels (typename MessageMapType::itsBoolFunctionTakingTstring eventHandler) |
Sets the event handler for what function to be called when a label is edited. |
void onValidateEditLabels | ( | typename MessageMapType::itsBoolFunctionTakingTstring | eventHandler | ) | [inherited] |
Sets the event handler for what function to be called when a label is edited.
Event handler signature is must be "bool foo( WidgetTreeView *, SmartUtil::tstring & )" 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 WidgetTreeView.
Return true from your event handler if you wish the label to actually become updated or false if you want to disallow the item to actually become updated!