]>
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 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
65571936 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_STATTEXT_H_ |
13 | #define _WX_STATTEXT_H_ | |
2bda0e17 | 14 | |
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
396bdd5a | 16 | #pragma interface "stattext.h" |
2bda0e17 KB |
17 | #endif |
18 | ||
1e3a888e | 19 | class WXDLLEXPORT wxStaticText : public wxStaticTextBase |
2bda0e17 | 20 | { |
396bdd5a VZ |
21 | public: |
22 | wxStaticText() { } | |
4438caf4 | 23 | |
1e6feb95 VZ |
24 | wxStaticText(wxWindow *parent, |
25 | wxWindowID id, | |
26 | const wxString& label, | |
27 | const wxPoint& pos = wxDefaultPosition, | |
28 | const wxSize& size = wxDefaultSize, | |
29 | long style = 0, | |
30 | const wxString& name = wxStaticTextNameStr) | |
396bdd5a VZ |
31 | { |
32 | Create(parent, id, label, pos, size, style, name); | |
33 | } | |
4438caf4 | 34 | |
1e6feb95 VZ |
35 | bool Create(wxWindow *parent, |
36 | wxWindowID id, | |
37 | const wxString& label, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = 0, | |
41 | const wxString& name = wxStaticTextNameStr); | |
4438caf4 | 42 | |
bfc6fde4 | 43 | protected: |
29020b90 | 44 | // implement/override some base class virtuals |
65bc172c | 45 | virtual wxBorder GetDefaultBorder() const; |
1e3a888e VZ |
46 | virtual void DoSetSize(int x, int y, int w, int h, |
47 | int sizeFlags = wxSIZE_AUTO); | |
f68586e5 | 48 | virtual wxSize DoGetBestSize() const; |
29020b90 | 49 | virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const; |
1e3a888e | 50 | |
fc7a2a60 | 51 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText) |
2bda0e17 KB |
52 | }; |
53 | ||
54 | #endif | |
bbcdf8bc | 55 | // _WX_STATTEXT_H_ |