]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statbox.h
1 //////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbox.h
3 // Purpose: wxStaticBox declaration
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_STATBOX_H_
13 #define _WX_UNIV_STATBOX_H_
16 #pragma interface "univstatbox.h"
19 class WXDLLEXPORT wxStaticBox
: public wxStaticBoxBase
24 wxStaticBox(wxWindow
*parent
,
25 const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
)
29 Create(parent
, -1, label
, pos
, size
);
32 wxStaticBox(wxWindow
*parent
, wxWindowID id
,
33 const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxString
& name
= wxStaticBoxNameStr
)
39 Create(parent
, id
, label
, pos
, size
, style
, name
);
42 bool Create(wxWindow
*parent
,
44 const wxString
& label
,
45 const wxPoint
& pos
= wxDefaultPosition
,
46 const wxSize
& size
= wxDefaultSize
,
48 const wxString
& name
= wxStaticBoxNameStr
);
50 // the origin of the static box is inside the border and under the label:
51 // take account of this
52 virtual wxPoint
GetBoxAreaOrigin() const;
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_