From 3dd709d8c3a4bceb7d5cc655bcca26616391c82d Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 27 Mar 2003 20:17:27 +0000 Subject: [PATCH] FIxed wxRadioBox::Get/SetLabel. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/motif/radiobox.h | 6 ++++-- src/motif/radiobox.cpp | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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,