]>
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 | |
c0e6c051 RD |
43 | // override some methods to resize the window properly |
44 | virtual void SetLabel(const wxString& label); | |
45 | virtual bool SetFont( const wxFont &font ); | |
46 | ||
bfc6fde4 | 47 | protected: |
29020b90 | 48 | // implement/override some base class virtuals |
65bc172c | 49 | virtual wxBorder GetDefaultBorder() const; |
1e3a888e VZ |
50 | virtual void DoSetSize(int x, int y, int w, int h, |
51 | int sizeFlags = wxSIZE_AUTO); | |
f68586e5 | 52 | virtual wxSize DoGetBestSize() const; |
29020b90 | 53 | virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const; |
1e255b00 | 54 | virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg); |
1e3a888e | 55 | |
fc7a2a60 | 56 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText) |
2bda0e17 KB |
57 | }; |
58 | ||
59 | #endif | |
bbcdf8bc | 60 | // _WX_STATTEXT_H_ |