- // Tries:
- // 1) A callback function (to become obsolete)
- // 2) OnCommand, starting at this window and working up parent hierarchy
- // 3) OnCommand then calls ProcessEvent to search the event tables.
- if (m_callback)
- {
- (void) (*(m_callback)) (*this, event);
- }
- else
- {
- GetEventHandler()->OnCommand(*this, event);
- }
+ Widget widget = (Widget) GetLabelWidget() ;
+ if (!widget)
+ return;
+
+ wxXmString label_str(wxStripMenuCodes(label));
+
+ XtVaSetValues (widget,
+ XmNlabelString, label_str(),
+ XmNlabelType, XmSTRING,
+ NULL);