]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stattext.h | |
3 | // Purpose: wxStaticText class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
4438caf4 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_STATTEXT_H_ |
13 | #define _WX_STATTEXT_H_ | |
2bda0e17 KB |
14 | |
15 | #ifdef __GNUG__ | |
396bdd5a | 16 | #pragma interface "stattext.h" |
2bda0e17 KB |
17 | #endif |
18 | ||
19 | #include "wx/control.h" | |
20 | ||
32c1cda2 | 21 | WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr; |
2bda0e17 | 22 | |
396bdd5a | 23 | class WXDLLEXPORT wxStaticText : public wxControl |
2bda0e17 | 24 | { |
396bdd5a | 25 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
2bda0e17 | 26 | |
396bdd5a VZ |
27 | public: |
28 | wxStaticText() { } | |
4438caf4 | 29 | |
1e6feb95 VZ |
30 | wxStaticText(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) | |
396bdd5a VZ |
37 | { |
38 | Create(parent, id, label, pos, size, style, name); | |
39 | } | |
4438caf4 | 40 | |
1e6feb95 VZ |
41 | bool Create(wxWindow *parent, |
42 | wxWindowID id, | |
43 | const wxString& label, | |
44 | const wxPoint& pos = wxDefaultPosition, | |
45 | const wxSize& size = wxDefaultSize, | |
46 | long style = 0, | |
47 | const wxString& name = wxStaticTextNameStr); | |
4438caf4 | 48 | |
396bdd5a | 49 | // accessors |
396bdd5a | 50 | void SetLabel(const wxString& label); |
486fd225 | 51 | bool SetFont( const wxFont &font ); |
4438caf4 | 52 | |
396bdd5a VZ |
53 | // overriden base class virtuals |
54 | virtual bool AcceptsFocus() const { return FALSE; } | |
4438caf4 | 55 | |
396bdd5a | 56 | // callbacks |
396bdd5a | 57 | virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); |
bfc6fde4 VZ |
58 | |
59 | protected: | |
f68586e5 | 60 | virtual wxSize DoGetBestSize() const; |
2bda0e17 KB |
61 | }; |
62 | ||
63 | #endif | |
bbcdf8bc | 64 | // _WX_STATTEXT_H_ |