projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated OS/2 sources with fixes to wxControl and wxSpinCtrl
[wxWidgets.git]
/
src
/
gtk
/
radiobox.cpp
diff --git
a/src/gtk/radiobox.cpp
b/src/gtk/radiobox.cpp
index 6dda8dc6c4ff0eef59272fc33567036ab672a29a..2afc3aec550c2380e0e38eabb292e9a85a1ea86c 100644
(file)
--- a/
src/gtk/radiobox.cpp
+++ b/
src/gtk/radiobox.cpp
@@
-180,6
+180,16
@@
bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
m_x+10, m_y+10+(i*24), 10, 10 );
}
m_x+10, m_y+10+(i*24), 10, 10 );
}
+ m_parent->DoAddChild( this );
+
+ PostCreation();
+
+ ApplyWidgetStyle();
+
+ SetLabel( title );
+
+ SetFont( parent->GetFont() );
+
wxSize ls = LayoutItems();
wxSize newSize = size;
wxSize ls = LayoutItems();
wxSize newSize = size;
@@
-187,15
+197,8
@@
bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
if (newSize.y == -1) newSize.y = ls.y;
SetSize( newSize.x, newSize.y );
if (newSize.y == -1) newSize.y = ls.y;
SetSize( newSize.x, newSize.y );
- m_parent->DoAddChild( this );
-
- PostCreation();
-
- SetLabel( title );
-
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
- SetFont( parent->GetFont() );
Show( TRUE );
Show( TRUE );