// ----------------------------------------------------------------------------
// 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,
- Create(parent, id, pos, size, style, name);
+ Create(parent, winid, pos, size, 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,
- // Sends an OnInitDialog event, which in turns transfers data to
- // to the dialog via validators.
+ // calls layout for layout constraints and sizers
+ void OnSize(wxSizeEvent& event);
+
- // responds to colour changes
- void OnSysColourChanged(wxSysColourChangedEvent& event);
+#ifdef __WXUNIVERSAL__
+ virtual bool IsCanvasWindow() const { return true; }
+ virtual bool ProvidesBackground() const { return true; }
+#endif
+
+ virtual void ApplyParentThemeBackground(const wxColour& bg)
+ { SetBackgroundColour(bg); }