FIxed wxRadioBox::Get/SetLabel.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2003-03-27 20:17:27 +00:00
parent c4e41ce37a
commit 3dd709d8c3
2 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -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,