diff --git a/include/wx/motif/radiobox.h b/include/wx/motif/radiobox.h index bf7c100c46..a47c3a5c46 100644 --- a/include/wx/motif/radiobox.h +++ b/include/wx/motif/radiobox.h @@ -73,8 +73,9 @@ public: virtual void ChangeFont(bool keepOriginalSize = TRUE); virtual void ChangeBackgroundColour(); virtual void ChangeForegroundColour(); - inline WXWidget* GetRadioButtons() const { return m_radioButtons; } - inline void SetSel(int i) { m_selectedButton = i; } + WXWidget* GetRadioButtons() const { return m_radioButtons; } + void SetSel(int i) { m_selectedButton = i; } + virtual WXWidget GetLabelWidget() const { return m_labelWidget; } protected: int m_majorDim; @@ -83,6 +84,7 @@ protected: int m_selectedButton; WXWidget* m_radioButtons; + WXWidget m_labelWidget; wxString* m_radioButtonLabels; virtual void DoSetSize(int x, int y, diff --git a/src/motif/radiobox.cpp b/src/motif/radiobox.cpp index 98368633fc..6659d3d324 100644 --- a/src/motif/radiobox.cpp +++ b/src/motif/radiobox.cpp @@ -102,7 +102,8 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, if (label1 != "") { wxXmString text(label1); - (void)XtVaCreateManagedWidget( label1.c_str(), + m_labelWidget = (WXWidget) + XtVaCreateManagedWidget( label1.c_str(), #if wxUSE_GADGETS style & wxCOLOURED ? xmLabelWidgetClass : xmLabelGadgetClass,