When I put wxCollapsiblePane inside wxSplitterWindow and collapse/expand it, moving of other elements inside the window's boxsizer only happens after I move the sash. As such, expanding doesn't show the contents until I move the sash and collapsing doesn't make other elements reclaim the newly available space until I move the sash. I found very hacky way to force the update as so:
Code: Select all
EVT_COLLAPSIBLEPANE_CHANGED(PANE_COLLAPSE, MyFrame::OnCollapse)
[..]
MyFrame::OnCollapse(wxCollapsiblePaneEvent& event)
{
m_topdownsplitter->SetSashPosition(m_topdownsplitter->GetSashPosition()-1);
m_topdownsplitter->SetSashPosition(m_topdownsplitter->GetSashPosition()+1);
}
But I'm wondering if this could be avoided? This is with GTK2 platform.