]>
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 | ||
396bdd5a | 21 | class WXDLLEXPORT wxStaticText : public wxControl |
2bda0e17 | 22 | { |
396bdd5a | 23 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
2bda0e17 | 24 | |
396bdd5a VZ |
25 | public: |
26 | wxStaticText() { } | |
4438caf4 | 27 | |
1e6feb95 VZ |
28 | wxStaticText(wxWindow *parent, |
29 | wxWindowID id, | |
30 | const wxString& label, | |
31 | const wxPoint& pos = wxDefaultPosition, | |
32 | const wxSize& size = wxDefaultSize, | |
33 | long style = 0, | |
34 | const wxString& name = wxStaticTextNameStr) | |
396bdd5a VZ |
35 | { |
36 | Create(parent, id, label, pos, size, style, name); | |
37 | } | |
4438caf4 | 38 | |
1e6feb95 VZ |
39 | bool Create(wxWindow *parent, |
40 | wxWindowID id, | |
41 | const wxString& label, | |
42 | const wxPoint& pos = wxDefaultPosition, | |
43 | const wxSize& size = wxDefaultSize, | |
44 | long style = 0, | |
45 | const wxString& name = wxStaticTextNameStr); | |
4438caf4 | 46 | |
396bdd5a | 47 | // accessors |
396bdd5a | 48 | void SetLabel(const wxString& label); |
486fd225 | 49 | bool SetFont( const wxFont &font ); |
4438caf4 | 50 | |
396bdd5a VZ |
51 | // overriden base class virtuals |
52 | virtual bool AcceptsFocus() const { return FALSE; } | |
4438caf4 | 53 | |
396bdd5a | 54 | // callbacks |
396bdd5a | 55 | virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); |
bfc6fde4 VZ |
56 | |
57 | protected: | |
f68586e5 | 58 | virtual wxSize DoGetBestSize() const; |
2bda0e17 KB |
59 | }; |
60 | ||
61 | #endif | |
bbcdf8bc | 62 | // _WX_STATTEXT_H_ |