]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/panel.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / univ / panel.h
CommitLineData
5b87bd6c
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/panel.h
3// Purpose: wxUniversal-specific wxPanel class.
4// Author: Vadim Zeitlin
5// Created: 2011-03-18
5b87bd6c
VZ
6// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_UNIV_PANEL_H_
11#define _WX_UNIV_PANEL_H_
12
13// ----------------------------------------------------------------------------
14// wxPanel
15// ----------------------------------------------------------------------------
16
17class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
18{
19public:
20 wxPanel() { }
21
5b87bd6c
VZ
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 virtual bool IsCanvasWindow() const { return true; }
33
7bc57fd9 34#if WXWIN_COMPATIBILITY_2_8
cf858bab
VZ
35 wxDEPRECATED_CONSTRUCTOR(
36 wxPanel(wxWindow *parent,
37 int x, int y, int width, int height,
38 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
39 const wxString& name = wxPanelNameStr)
40 {
41 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
42 }
43 )
44#endif // WXWIN_COMPATIBILITY_2_8
45
5b87bd6c
VZ
46private:
47 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
48};
49
50#endif // _WX_UNIV_PANEL_H_