From: Robert Roebling Date: Thu, 6 Jan 2000 18:40:33 +0000 (+0000) Subject: Minor resize probs solved. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7e2b55cd9674c762e56316954d427e939289515b Minor resize probs solved. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 53486763f4..ac536f9b9c 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -544,10 +544,10 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) (void)new wxButton( panel, ID_RADIOBOX_SEL_STR, "Select 'This'", wxPoint(180,80), wxSize(140,30) ); m_fontButton = new wxButton( panel, ID_SET_FONT, "Set more Italic font", wxPoint(340,30), wxSize(140,30) ); (void)new wxButton( panel, ID_RADIOBOX_FONT, "Set Italic font", wxPoint(340,80), wxSize(140,30) ); - (void)new wxCheckBox( panel, ID_RADIOBOX_ENABLE, "Disable", wxPoint(340,130), wxSize(140,30) ); - wxRadioButton *rb = new wxRadioButton( panel, ID_RADIOBUTTON_1, "Radiobutton1", wxPoint(210,170), wxSize(110,30), wxRB_GROUP ); + (void)new wxCheckBox( panel, ID_RADIOBOX_ENABLE, "Disable", wxPoint(340,130), wxDefaultSize ); + wxRadioButton *rb = new wxRadioButton( panel, ID_RADIOBUTTON_1, "Radiobutton1", wxPoint(210,170), wxDefaultSize, wxRB_GROUP ); rb->SetValue( FALSE ); - (void)new wxRadioButton( panel, ID_RADIOBUTTON_2, "Radiobutton2", wxPoint(340,170), wxSize(110,30) ); + (void)new wxRadioButton( panel, ID_RADIOBUTTON_2, "Radiobutton2", wxPoint(340,170), wxDefaultSize ); m_notebook->AddPage(panel, "wxRadioBox", FALSE, Image_Radio); panel = new wxPanel(m_notebook); diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 3a3c847588..352ec74493 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -183,6 +183,8 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, m_parent->DoAddChild( this ); PostCreation(); + + ApplyWidgetStyle(); SetLabel( title ); diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index ff7c054a02..39664e6f76 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -81,6 +81,8 @@ bool wxStaticText::Create(wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); + + ApplyWidgetStyle(); wxControl::SetFont( parent->GetFont() ); diff --git a/src/gtk1/radiobox.cpp b/src/gtk1/radiobox.cpp index 3a3c847588..352ec74493 100644 --- a/src/gtk1/radiobox.cpp +++ b/src/gtk1/radiobox.cpp @@ -183,6 +183,8 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, m_parent->DoAddChild( this ); PostCreation(); + + ApplyWidgetStyle(); SetLabel( title ); diff --git a/src/gtk1/stattext.cpp b/src/gtk1/stattext.cpp index ff7c054a02..39664e6f76 100644 --- a/src/gtk1/stattext.cpp +++ b/src/gtk1/stattext.cpp @@ -81,6 +81,8 @@ bool wxStaticText::Create(wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); + + ApplyWidgetStyle(); wxControl::SetFont( parent->GetFont() );