if (!widget)
return;
- wxString buf(wxStripMenuCodes(label));
- wxXmString label_str(buf);
+ wxXmString label_str(wxStripMenuCodes(label));
XtVaSetValues (widget,
XmNlabelString, label_str(),
return wxEmptyString;
XmString text;
- char *s;
XtVaGetValues (widget,
XmNlabelString, &text,
NULL);
- if (XmStringGetLtoR (text, XmSTRING_DEFAULT_CHARSET, &s))
- {
- wxString str(s);
- XtFree (s);
- XmStringFree(text);
- return str;
- }
- else
- {
- // XmStringFree(text);
- return wxEmptyString;
- }
+ return wxXmStringToString( text );
}
bool wxControl::ProcessCommand(wxCommandEvent & event)