X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d9123c6968b452a95133c635069d6f7ae8ea5..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 5248292eea..83b4a28188 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "stattext.h" #endif @@ -32,7 +32,20 @@ #include "wx/msw/private.h" #include +#if wxUSE_EXTENDED_RTTI +IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticText, wxControl,"wx/stattext.h") + +WX_BEGIN_PROPERTIES_TABLE(wxStaticText) + WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxEmptyString ) +WX_END_PROPERTIES_TABLE() + +WX_BEGIN_HANDLERS_TABLE(wxStaticText) +WX_END_HANDLERS_TABLE() + +WX_CONSTRUCTOR_6( wxStaticText , wxWindow* , Parent , wxWindowID , Id , wxString , Label , wxPoint , Position , wxSize , Size , long , WindowStyle ) +#else IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl) +#endif bool wxStaticText::Create(wxWindow *parent, wxWindowID id, @@ -42,10 +55,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 +64,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);