1 #ifndef _WX_STATBOX_H_BASE_
2 #define _WX_STATBOX_H_BASE_
6 #include "wx/control.h"
8 extern WXDLLEXPORT_DATA(const wxChar
*) wxStaticBoxNameStr
;
10 // ----------------------------------------------------------------------------
11 // wxStaticBox: a grouping box with a label
12 // ----------------------------------------------------------------------------
14 class WXDLLEXPORT wxStaticBoxBase
: public wxControl
19 // overriden base class virtuals
20 virtual bool AcceptsFocus() const { return false; }
21 virtual bool HasTransparentBackground() { return true; }
23 // implementation only: this is used by wxStaticBoxSizer to account for the
24 // need for extra space taken by the static box
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
30 static const int BORDER
= 5; // FIXME: hardcoded value
32 *borderTop
= GetLabel().empty() ? BORDER
: GetCharHeight();
33 *borderOther
= BORDER
;
37 DECLARE_NO_COPY_CLASS(wxStaticBoxBase
)
40 #if defined(__WXUNIVERSAL__)
41 #include "wx/univ/statbox.h"
42 #elif defined(__WXMSW__)
43 #include "wx/msw/statbox.h"
44 #elif defined(__WXMOTIF__)
45 #include "wx/motif/statbox.h"
46 #elif defined(__WXGTK__)
47 #include "wx/gtk/statbox.h"
48 #elif defined(__WXMAC__)
49 #include "wx/mac/statbox.h"
50 #elif defined(__WXCOCOA__)
51 #include "wx/cocoa/statbox.h"
52 #elif defined(__WXPM__)
53 #include "wx/os2/statbox.h"
56 #endif // wxUSE_STATBOX
59 // _WX_STATBOX_H_BASE_