]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/button.cpp
allow changing the page from keyboard in property sheet like controls even when the...
[wxWidgets.git] / src / motif / button.cpp
index ed2ded5373472d57b5aef4b547c23947ff0ad4f1..77ce5c024229cbd2b219e9c8c1f45c5b10ad15fc 100644 (file)
 #pragma message enable nosimpint
 #endif
 
+
+#ifndef WX_PRECOMP
+    #include "wx/toplevel.h"
+#endif
+
 #include "wx/stockitem.h"
 #include "wx/motif/private.h"
 #include "wx/sysopt.h"
@@ -53,8 +58,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& lbl,
     if( !CreateControl( parent, id, pos, size, style, validator, name ) )
         return false;
 
-    wxString label1(wxStripMenuCodes(label));
-    wxXmString text( label1 );
+    wxXmString text( GetLabelText(label) );
 
     Widget parentWidget = (Widget) parent->GetClientWidget();