1 //////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbox.h
3 // Purpose: wxStaticBox declaration
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_STATBOX_H_
12 #define _WX_UNIV_STATBOX_H_
14 class WXDLLIMPEXP_CORE wxStaticBox
: public wxStaticBoxBase
19 wxStaticBox(wxWindow
*parent
,
20 const wxString
& label
,
21 const wxPoint
& pos
= wxDefaultPosition
,
22 const wxSize
& size
= wxDefaultSize
)
24 Create(parent
, wxID_ANY
, label
, pos
, size
);
27 wxStaticBox(wxWindow
*parent
, wxWindowID id
,
28 const wxString
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
32 const wxString
& name
= wxStaticBoxNameStr
)
34 Create(parent
, id
, label
, pos
, size
, style
, name
);
37 bool Create(wxWindow
*parent
,
39 const wxString
& label
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
43 const wxString
& name
= wxStaticBoxNameStr
);
45 // the origin of the static box is inside the border and under the label:
46 // take account of this
47 virtual wxPoint
GetBoxAreaOrigin() const;
49 // returning true from here ensures that we act as a container window for
51 virtual bool IsStaticBox() const { return true; }
55 virtual void DoDraw(wxControlRenderer
*renderer
);
57 // get the size of the border
58 wxRect
GetBorderGeometry() const;
61 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
64 #endif // _WX_UNIV_STATBOX_H_