]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
29020b90 | 2 | // Name: wx/msw/stattext.h |
2bda0e17 KB |
3 | // Purpose: wxStaticText class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
bbcdf8bc | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
2bda0e17 KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
bbcdf8bc JS |
11 | #ifndef _WX_STATTEXT_H_ |
12 | #define _WX_STATTEXT_H_ | |
2bda0e17 | 13 | |
53a2db12 | 14 | class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase |
2bda0e17 | 15 | { |
396bdd5a VZ |
16 | public: |
17 | wxStaticText() { } | |
4438caf4 | 18 | |
1e6feb95 VZ |
19 | wxStaticText(wxWindow *parent, |
20 | wxWindowID id, | |
21 | const wxString& label, | |
22 | const wxPoint& pos = wxDefaultPosition, | |
23 | const wxSize& size = wxDefaultSize, | |
24 | long style = 0, | |
25 | const wxString& name = wxStaticTextNameStr) | |
396bdd5a VZ |
26 | { |
27 | Create(parent, id, label, pos, size, style, name); | |
28 | } | |
4438caf4 | 29 | |
1e6feb95 VZ |
30 | bool Create(wxWindow *parent, |
31 | wxWindowID id, | |
32 | const wxString& label, | |
33 | const wxPoint& pos = wxDefaultPosition, | |
34 | const wxSize& size = wxDefaultSize, | |
35 | long style = 0, | |
36 | const wxString& name = wxStaticTextNameStr); | |
4438caf4 | 37 | |
c0e6c051 RD |
38 | // override some methods to resize the window properly |
39 | virtual void SetLabel(const wxString& label); | |
40 | virtual bool SetFont( const wxFont &font ); | |
41 | ||
6f02a879 VZ |
42 | virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const; |
43 | ||
bfc6fde4 | 44 | protected: |
29020b90 | 45 | // implement/override some base class virtuals |
1e3a888e VZ |
46 | virtual void DoSetSize(int x, int y, int w, int h, |
47 | int sizeFlags = wxSIZE_AUTO); | |
743b4266 | 48 | virtual wxSize DoGetBestClientSize() const; |
1e3a888e | 49 | |
39bc0347 VZ |
50 | virtual wxString DoGetLabel() const; |
51 | virtual void DoSetLabel(const wxString& str); | |
52 | ||
fc7a2a60 | 53 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText) |
2bda0e17 KB |
54 | }; |
55 | ||
56 | #endif | |
bbcdf8bc | 57 | // _WX_STATTEXT_H_ |