]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/panelg.h
3c815485f218bc4ab94f31c12ae800ada53d4149
[wxWidgets.git] / include / wx / generic / panelg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/panelg.h
3 // Purpose: wxPanel: a container for child controls
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GENERIC_PANELG_H_
13 #define _WX_GENERIC_PANELG_H_
14
15 class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
16 {
17 public:
18 wxPanel() { }
19
20 // Old-style constructor (no default values for coordinates to avoid
21 // ambiguity with the new one)
22 wxPanel(wxWindow *parent,
23 int x, int y, int width, int height,
24 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
25 const wxString& name = wxPanelNameStr)
26 {
27 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
28 }
29
30 // Constructor
31 wxPanel(wxWindow *parent,
32 wxWindowID winid = wxID_ANY,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
36 const wxString& name = wxPanelNameStr)
37 {
38 Create(parent, winid, pos, size, style, name);
39 }
40
41 private:
42 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
43 };
44
45 #endif // _WX_GENERIC_PANELG_H_