projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ok, it does work - it's just that wxGTK doesn't
[wxWidgets.git]
/
src
/
gtk
/
statbox.cpp
diff --git
a/src/gtk/statbox.cpp
b/src/gtk/statbox.cpp
index b7697b9ce702068a45cf3ed87e1ee3ef500adf18..7afc40103d6317e3272bbc4dcdcc6e04153a8478 100644
(file)
--- a/
src/gtk/statbox.cpp
+++ b/
src/gtk/statbox.cpp
@@
-45,7
+45,7
@@
bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
wxFAIL_MSG( wxT("wxStaticBox creation failed") );
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
wxFAIL_MSG( wxT("wxStaticBox creation failed") );
- return FALSE;
+
return FALSE;
}
m_isStaticBox = TRUE;
}
m_isStaticBox = TRUE;
@@
-61,9
+61,10
@@
bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
SetLabel(label);
SetLabel(label);
+ SetFont( parent->GetFont() );
+
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
- SetFont( parent->GetFont() );
Show( TRUE );
Show( TRUE );