// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_GENERIC_PANEL_H_
#define _WX_GENERIC_PANEL_H_
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_GENERIC_PANEL_H_
#define _WX_GENERIC_PANEL_H_
// ----------------------------------------------------------------------------
// headers and forward declarations
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// headers and forward declarations
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxPanel contains other controls and implements TAB traversal between them
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxPanel contains other controls and implements TAB traversal between them
// ----------------------------------------------------------------------------
- Create(parent, -1, wxPoint(x, y), wxSize(width, height), style, name);
+ Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
- bool Create(wxWindow *parent, wxWindowID winid,
+ bool Create(wxWindow *parent,
+ wxWindowID winid = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
// calls layout for layout constraints and sizers
void OnSize(wxSizeEvent& event);
virtual void InitDialog();
#ifdef __WXUNIVERSAL__
// calls layout for layout constraints and sizers
void OnSize(wxSizeEvent& event);
virtual void InitDialog();
#ifdef __WXUNIVERSAL__
-private:
- DECLARE_DYNAMIC_CLASS(wxPanel)
+ // choose the default border for this window
+ virtual wxBorder GetDefaultBorder() const { return wxWindowBase::GetDefaultBorder(); }
+
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel)