X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d167e39384679dc78e64fc04af62a24e828a31d..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/os2/stattext.h?ds=sidebyside diff --git a/include/wx/os2/stattext.h b/include/wx/os2/stattext.h index 56fe3b63d8..d730409fd3 100644 --- a/include/wx/os2/stattext.h +++ b/include/wx/os2/stattext.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: stattext.h +// Name: wx/os2/stattext.h // Purpose: wxStaticText class // Author: David Webster // Modified by: @@ -12,21 +12,12 @@ #ifndef _WX_STATTEXT_H_ #define _WX_STATTEXT_H_ -#ifdef __GNUG__ -#pragma interface "stattext.h" -#endif - #include "wx/control.h" -WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr; - -class WXDLLEXPORT wxStaticText : public wxControl +class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase { - DECLARE_DYNAMIC_CLASS(wxStaticText) - - public: +public: inline wxStaticText() { } - inline wxStaticText( wxWindow* pParent ,wxWindowID vId ,const wxString& rsLabel @@ -51,11 +42,11 @@ class WXDLLEXPORT wxStaticText : public wxControl // // Accessors // - void SetLabel(const wxString&); - bool SetFont(const wxFont &rFont); + virtual void SetLabel(const wxString& rsLabel); + virtual bool SetFont(const wxFont &rFont); // - // Overriden base class virtuals + // Overridden base class virtuals // virtual bool AcceptsFocus() const { return FALSE; } @@ -68,7 +59,19 @@ class WXDLLEXPORT wxStaticText : public wxControl ); protected: + virtual void DoSetSize( int nX + ,int nY + ,int nWidth + ,int nHeight + ,int nSizeFlags = wxSIZE_AUTO + ); virtual wxSize DoGetBestSize(void) const; + + virtual void DoSetLabel(const wxString& str); + virtual wxString DoGetLabel() const; + +private: + DECLARE_DYNAMIC_CLASS(wxStaticText) }; // end of CLASS wxStaticText #endif