X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..d9b4ddf28fbf20fe28d20c72b37c85a8e2db686e:/include/wx/univ/stattext.h diff --git a/include/wx/univ/stattext.h b/include/wx/univ/stattext.h index f6ef3232cd..fc17b58df8 100644 --- a/include/wx/univ/stattext.h +++ b/include/wx/univ/stattext.h @@ -5,8 +5,8 @@ // Modified by: // Created: 14.08.00 // RCS-ID: $Id$ -// Copyright: (c) 2000 Vadim Zeitlin -// Licence: wxWindows license +// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_STATTEXT_H_ @@ -19,6 +19,8 @@ class WXDLLEXPORT wxStaticText : public wxStaticTextBase { public: + wxStaticText() { } + // usual ctor wxStaticText(wxWindow *parent, const wxString& label, @@ -33,7 +35,7 @@ public: wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, + const wxSize& size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr) { @@ -45,7 +47,7 @@ public: wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, - const wxSize &size = wxDefaultSize, + const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr); @@ -53,12 +55,18 @@ public: virtual void SetLabel(const wxString& label); + virtual bool HasTransparentBackground() { return TRUE; } + + virtual bool IsFocused() const { return FALSE; } + protected: // calculate the optimal size for the label virtual wxSize DoGetBestClientSize() const; // draw the control virtual void DoDraw(wxControlRenderer *renderer); + + DECLARE_ABSTRACT_CLASS(wxStaticText) }; #endif // _WX_UNIV_STATTEXT_H_