]>
Commit | Line | Data |
---|---|---|
34138703 JS |
1 | #ifndef _WX_STATTEXT_H_BASE_ |
2 | #define _WX_STATTEXT_H_BASE_ | |
c801d85f | 3 | |
1e6feb95 VZ |
4 | #if wxUSE_STATTEXT |
5 | ||
6 | #include "wx/control.h" | |
7 | ||
403aced8 | 8 | WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr; |
1e6feb95 VZ |
9 | |
10 | class WXDLLEXPORT wxStaticTextBase : public wxControl | |
11 | { | |
12 | public: | |
fc7a2a60 VZ |
13 | wxStaticTextBase() { } |
14 | ||
bd507486 RD |
15 | // overriden base virtuals |
16 | virtual bool AcceptsFocus() const { return false; } | |
cc0bffac RD |
17 | virtual void ApplyParentThemeBackground(const wxColour& bg) |
18 | { SetBackgroundColour(bg); } | |
fc7a2a60 | 19 | |
fe161a26 RD |
20 | bool GetAdjustMinSizeFlag() const { return !HasFlag(wxST_NO_AUTORESIZE); } |
21 | ||
fc7a2a60 VZ |
22 | private: |
23 | DECLARE_NO_COPY_CLASS(wxStaticTextBase) | |
1e6feb95 VZ |
24 | }; |
25 | ||
26 | #if defined(__WXUNIVERSAL__) | |
27 | #include "wx/univ/stattext.h" | |
28 | #elif defined(__WXMSW__) | |
29 | #include "wx/msw/stattext.h" | |
2049ba38 | 30 | #elif defined(__WXMOTIF__) |
1e6feb95 | 31 | #include "wx/motif/stattext.h" |
2049ba38 | 32 | #elif defined(__WXGTK__) |
1e6feb95 | 33 | #include "wx/gtk/stattext.h" |
34138703 | 34 | #elif defined(__WXMAC__) |
1e6feb95 | 35 | #include "wx/mac/stattext.h" |
e64df9bc DE |
36 | #elif defined(__WXCOCOA__) |
37 | #include "wx/cocoa/stattext.h" | |
1777b9bb | 38 | #elif defined(__WXPM__) |
1e6feb95 | 39 | #include "wx/os2/stattext.h" |
c801d85f KB |
40 | #endif |
41 | ||
1e6feb95 VZ |
42 | #endif // wxUSE_STATTEXT |
43 | ||
c801d85f | 44 | #endif |
34138703 | 45 | // _WX_STATTEXT_H_BASE_ |