]>
Commit | Line | Data |
---|---|---|
1 | #ifndef _WX_STATBOX_H_BASE_ | |
2 | #define _WX_STATBOX_H_BASE_ | |
3 | ||
4 | #if wxUSE_STATBOX | |
5 | ||
6 | #include "wx/control.h" | |
7 | ||
8 | WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr; | |
9 | ||
10 | // ---------------------------------------------------------------------------- | |
11 | // wxStaticBox: a grouping box with a label | |
12 | // ---------------------------------------------------------------------------- | |
13 | ||
14 | class WXDLLEXPORT wxStaticBoxBase : public wxControl | |
15 | { | |
16 | public: | |
17 | wxStaticBoxBase() { } | |
18 | ||
19 | // overriden base class virtuals | |
20 | virtual bool AcceptsFocus() const { return false; } | |
21 | virtual void ApplyParentThemeBackground(const wxColour& bg) | |
22 | { SetBackgroundColour(bg); } | |
23 | ||
24 | private: | |
25 | DECLARE_NO_COPY_CLASS(wxStaticBoxBase) | |
26 | }; | |
27 | ||
28 | #if defined(__WXUNIVERSAL__) | |
29 | #include "wx/univ/statbox.h" | |
30 | #elif defined(__WXMSW__) | |
31 | #include "wx/msw/statbox.h" | |
32 | #elif defined(__WXMOTIF__) | |
33 | #include "wx/motif/statbox.h" | |
34 | #elif defined(__WXGTK__) | |
35 | #include "wx/gtk/statbox.h" | |
36 | #elif defined(__WXMAC__) | |
37 | #include "wx/mac/statbox.h" | |
38 | #elif defined(__WXCOCOA__) | |
39 | #include "wx/cocoa/statbox.h" | |
40 | #elif defined(__WXPM__) | |
41 | #include "wx/os2/statbox.h" | |
42 | #endif | |
43 | ||
44 | #endif // wxUSE_STATBOX | |
45 | ||
46 | #endif | |
47 | // _WX_STATBOX_H_BASE_ |