]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/stattext.cpp
attempts at making modal dialogs without parent work - failed
[wxWidgets.git] / src / stubs / stattext.cpp
index a1275b8bdcee3f075aabcd32f198554edfc7bca0..9de4821b481e8b135f4f40e97a08393ee2d80391 100644 (file)
@@ -18,9 +18,7 @@
 
 #include <stdio.h>
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
-#endif
 
 bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
            const wxString& label,
@@ -32,8 +30,8 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
   SetName(name);
   if (parent) parent->AddChild(this);
 
-  SetBackgroundColour(parent->GetDefaultBackgroundColour()) ;
-  SetForegroundColour(parent->GetDefaultForegroundColour()) ;
+  SetBackgroundColour(parent->GetBackgroundColour()) ;
+  SetForegroundColour(parent->GetForegroundColour()) ;
 
   if ( id == -1 )
        m_windowId = (int)NewControlId();
@@ -42,7 +40,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
 
   m_windowStyle = style;
 
-  SetFont(parent->GetFont());
+  SetFont(parent->GetFont());
 
   // TODO
   return FALSE;