]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/panelg.h
Use wxString::Clone() instead of c_str() in wxThreadEvent copy ctor.
[wxWidgets.git] / include / wx / generic / panelg.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
f6bcfd97
BP
2// Name: wx/generic/panelg.h
3// Purpose: wxPanel: a container for child controls
c801d85f
KB
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
99d80019 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
5b87bd6c
VZ
12#ifndef _WX_GENERIC_PANELG_H_
13#define _WX_GENERIC_PANELG_H_
c801d85f 14
cd95f7e6
VZ
15#include "wx/bitmap.h"
16
5b87bd6c 17class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
c801d85f 18{
c801d85f 19public:
5b87bd6c 20 wxPanel() { }
27dc7e21 21
cf858bab 22 // Constructor
341c92a8 23 wxPanel(wxWindow *parent,
cf858bab
VZ
24 wxWindowID winid = wxID_ANY,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
341c92a8
VZ
27 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
28 const wxString& name = wxPanelNameStr)
29 {
cf858bab 30 Create(parent, winid, pos, size, style, name);
341c92a8 31 }
27dc7e21 32
7bc57fd9 33#if WXWIN_COMPATIBILITY_2_8
cf858bab 34 wxDEPRECATED_CONSTRUCTOR(
341c92a8 35 wxPanel(wxWindow *parent,
cf858bab 36 int x, int y, int width, int height,
341c92a8
VZ
37 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
38 const wxString& name = wxPanelNameStr)
39 {
cf858bab 40 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
341c92a8 41 }
cf858bab
VZ
42 )
43#endif // WXWIN_COMPATIBILITY_2_8
c801d85f 44
ebfee179 45private:
5b87bd6c 46 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
c801d85f
KB
47};
48
5b87bd6c 49#endif // _WX_GENERIC_PANELG_H_