// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "stattext.h"
#endif
#include "wx/msw/private.h"
#include <stdio.h>
+#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,
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;
return TRUE;
}
+wxBorder wxStaticText::GetDefaultBorder() const
+{
+ return wxBORDER_NONE;
+}
+
WXDWORD wxStaticText::MSWGetStyle(long style, WXDWORD *exstyle) const
{
WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);