]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
fixed wxBase and GUI separation for sockets code
[wxWidgets.git] / src / msw / stattext.cpp
index 5248292eeaff588b209df192e28bceab91bb3762..4c2521c468f3a4ff8b6eccf3b0434daf82499aaf 100644 (file)
 #include <stdio.h>
 
 IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
+/*
+       TODO PROPERTIES :
+               label
+*/
 
 bool wxStaticText::Create(wxWindow *parent,
                           wxWindowID id,
@@ -42,10 +46,6 @@ bool wxStaticText::Create(wxWindow *parent,
                           long style,
                           const wxString& name)
 {
-    // By default, a static text should have no border.
-    if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT)
-        style |= wxBORDER_NONE;
-
     if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
         return FALSE;
 
@@ -55,6 +55,11 @@ bool wxStaticText::Create(wxWindow *parent,
     return TRUE;
 }
 
+wxBorder wxStaticText::GetDefaultBorder() const
+{
+    return wxBORDER_NONE;
+}
+
 WXDWORD wxStaticText::MSWGetStyle(long style, WXDWORD *exstyle) const
 {
     WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);