X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a8d94185f3d3237861e582c80cf5b7ac43c3c74..1215ec07d82d1b70402fe32293752f77d3d593fd:/contrib/src/foldbar/foldpanelbar.cpp?ds=sidebyside diff --git a/contrib/src/foldbar/foldpanelbar.cpp b/contrib/src/foldbar/foldpanelbar.cpp index 397750e68f..17ce202366 100644 --- a/contrib/src/foldbar/foldpanelbar.cpp +++ b/contrib/src/foldbar/foldpanelbar.cpp @@ -30,7 +30,7 @@ // wxFoldPanelBar //---------------------------------------------------------------------------- -IMPLEMENT_CLASS( wxFoldPanelBar, wxPanel ) +IMPLEMENT_DYNAMIC_CLASS( wxFoldPanelBar, wxPanel ) BEGIN_EVENT_TABLE(wxFoldPanelBar,wxPanel) EVT_SIZE(wxFoldPanelBar::OnSizePanel) @@ -39,13 +39,18 @@ BEGIN_EVENT_TABLE(wxFoldPanelBar,wxPanel) END_EVENT_TABLE() wxFoldPanelBar::wxFoldPanelBar() + : wxPanel() + , m_foldPanel(NULL) + , m_bottomPanel(NULL) + , m_controlCreated(false) { } wxFoldPanelBar::wxFoldPanelBar( wxWindow *parent, wxWindowID id, const wxPoint &position, const wxSize& size, long style, long extraStyle) - : m_foldPanel(NULL) + : wxPanel() + , m_foldPanel(NULL) , m_bottomPanel(NULL) , m_controlCreated(false) { @@ -69,7 +74,7 @@ void wxFoldPanelBar::Create( wxWindow *parent, wxWindowID id, const wxPoint &pos // the fold panel area - m_foldPanel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxTAB_TRAVERSAL); + m_foldPanel = new wxPanel(this, wxID_ANY, position, size, wxNO_BORDER|wxTAB_TRAVERSAL); // the extra area for some icons / context menu etc @@ -352,7 +357,7 @@ int wxFoldPanelBar::GetPanelsLength(int &collapsed, int &expanded) int value = 0; // assumed here that all the panels that are expanded - // are positioned after eachother from 0,0 to end. + // are positioned after each other from 0,0 to end. for(size_t j = 0; j < m_panels.GetCount(); j++) {