1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Base header for wxPanel
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PANEL_H_BASE_
13 #define _WX_PANEL_H_BASE_
15 // ----------------------------------------------------------------------------
16 // headers and forward declarations
17 // ----------------------------------------------------------------------------
19 #include "wx/window.h"
20 #include "wx/containr.h"
22 class WXDLLIMPEXP_FWD_CORE wxControlContainer
;
24 extern WXDLLIMPEXP_DATA_CORE(const char) wxPanelNameStr
[];
26 // ----------------------------------------------------------------------------
27 // wxPanel contains other controls and implements TAB traversal between them
28 // ----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxPanelBase
: public wxNavigationEnabled
<wxWindow
>
35 // Derived classes should also provide this constructor:
37 wxPanelBase(wxWindow *parent,
38 wxWindowID winid = wxID_ANY,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
42 const wxString& name = wxPanelNameStr);
46 bool Create(wxWindow
*parent
,
47 wxWindowID winid
= wxID_ANY
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
,
50 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
51 const wxString
& name
= wxPanelNameStr
);
54 // implementation from now on
55 // --------------------------
57 virtual void InitDialog();
60 wxDECLARE_NO_COPY_CLASS(wxPanelBase
);
63 #if defined(__WXUNIVERSAL__)
64 #include "wx/univ/panel.h"
65 #elif defined(__WXMSW__)
66 #include "wx/msw/panel.h"
68 #define wxHAS_GENERIC_PANEL
69 #include "wx/generic/panelg.h"
72 #endif // _WX_PANELH_BASE_