X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d9123c6968b452a95133c635069d6f7ae8ea5..38bb138f09688c1575766aafdbf296dfeeee0d7d:/src/msw/stattext.cpp?ds=sidebyside diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 5248292eea..4c2521c468 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -33,6 +33,10 @@ #include 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);