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 // Copyright: (c) Julian Smart 8 // Licence: wxWindows licence 9 ///////////////////////////////////////////////////////////////////////////// 10 11 #ifndef _WX_GENERIC_PANELG_H_ 12 #define _WX_GENERIC_PANELG_H_ 13 14 #include "wx/bitmap.h" 15 16 class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase 17 { 18 public: wxPanel()19 wxPanel() { } 20 21 // Constructor 22 wxPanel(wxWindow *parent, 23 wxWindowID winid = wxID_ANY, 24 const wxPoint& pos = wxDefaultPosition, 25 const wxSize& size = wxDefaultSize, 26 long style = wxTAB_TRAVERSAL | wxNO_BORDER, 27 const wxString& name = wxPanelNameStr) 28 { 29 Create(parent, winid, pos, size, style, name); 30 } 31 32 #if WXWIN_COMPATIBILITY_2_8 33 wxDEPRECATED_CONSTRUCTOR( 34 wxPanel(wxWindow *parent, 35 int x, int y, int width, int height, 36 long style = wxTAB_TRAVERSAL | wxNO_BORDER, 37 const wxString& name = wxPanelNameStr) 38 { 39 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name); 40 } 41 ) 42 #endif // WXWIN_COMPATIBILITY_2_8 43 44 private: 45 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel); 46 }; 47 48 #endif // _WX_GENERIC_PANELG_H_ 49