1 //////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbox.h
3 // Purpose: wxStaticBox declaration
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_STATBOX_H_
13 #define _WX_UNIV_STATBOX_H_
15 class WXDLLIMPEXP_CORE wxStaticBox
: public wxStaticBoxBase
20 wxStaticBox(wxWindow
*parent
,
21 const wxString
& label
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
)
25 Create(parent
, wxID_ANY
, label
, pos
, size
);
28 wxStaticBox(wxWindow
*parent
, wxWindowID id
,
29 const wxString
& label
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
33 const wxString
& name
= wxStaticBoxNameStr
)
35 Create(parent
, id
, label
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
,
40 const wxString
& label
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
44 const wxString
& name
= wxStaticBoxNameStr
);
46 // the origin of the static box is inside the border and under the label:
47 // take account of this
48 virtual wxPoint
GetBoxAreaOrigin() const;
50 // returning true from here ensures that we act as a container window for
52 virtual bool IsStaticBox() const { return true; }
56 virtual void DoDraw(wxControlRenderer
*renderer
);
58 // get the size of the border
59 wxRect
GetBorderGeometry() const;
62 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
65 #endif // _WX_UNIV_STATBOX_H_