]> git.saurik.com Git - wxWidgets.git/blame - include/wx/statbox.h
Added wxNB_FLAT for WinCE property sheet tabs
[wxWidgets.git] / include / wx / statbox.h
CommitLineData
34138703
JS
1#ifndef _WX_STATBOX_H_BASE_
2#define _WX_STATBOX_H_BASE_
c801d85f 3
1e6feb95
VZ
4#if wxUSE_STATBOX
5
6#include "wx/control.h"
7
16cba29d 8extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBoxNameStr;
1e6feb95
VZ
9
10// ----------------------------------------------------------------------------
11// wxStaticBox: a grouping box with a label
12// ----------------------------------------------------------------------------
13
14class WXDLLEXPORT wxStaticBoxBase : public wxControl
15{
16public:
fc7a2a60
VZ
17 wxStaticBoxBase() { }
18
1e6feb95 19 // overriden base class virtuals
bd507486 20 virtual bool AcceptsFocus() const { return false; }
7c7a653b 21 virtual bool HasTransparentBackground() { return true; }
fc7a2a60 22
5dd070c2
VZ
23 // implementation only: this is used by wxStaticBoxSizer to account for the
24 // need for extra space taken by the static box
25 //
26 // the top border is the margin at the top (where the title is),
27 // borderOther is the margin on all other sides
28 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const
29 {
30 static const int BORDER = 5; // FIXME: hardcoded value
31
32 *borderTop = GetLabel().empty() ? BORDER : GetCharHeight();
33 *borderOther = BORDER;
34 }
35
fc7a2a60
VZ
36private:
37 DECLARE_NO_COPY_CLASS(wxStaticBoxBase)
1e6feb95
VZ
38};
39
40#if defined(__WXUNIVERSAL__)
7c7a653b 41 #include "wx/univ/statbox.h"
1e6feb95 42#elif defined(__WXMSW__)
7c7a653b 43 #include "wx/msw/statbox.h"
2049ba38 44#elif defined(__WXMOTIF__)
7c7a653b 45 #include "wx/motif/statbox.h"
2049ba38 46#elif defined(__WXGTK__)
7c7a653b 47 #include "wx/gtk/statbox.h"
34138703 48#elif defined(__WXMAC__)
7c7a653b 49 #include "wx/mac/statbox.h"
e64df9bc 50#elif defined(__WXCOCOA__)
7c7a653b 51 #include "wx/cocoa/statbox.h"
1777b9bb 52#elif defined(__WXPM__)
7c7a653b 53 #include "wx/os2/statbox.h"
c801d85f
KB
54#endif
55
1e6feb95
VZ
56#endif // wxUSE_STATBOX
57
c801d85f 58#endif
34138703 59 // _WX_STATBOX_H_BASE_