I have a small quesiotn... Is it normal behaviour when wxPaneInfo::Show(...) has no affect for floating panes. I managed how to show/hide floating panes (see the code below), but is there more elegant way to do that?
- Code: Select all
void wxToolBoxSampleIDEMainFrame::TogglePaneVisibility(wxString pane_name)
{
wxPaneInfoArray& all_panes = m_FrameManager.GetAllPanes();
size_t i, count;
for (i = 0, count = all_panes.GetCount(); i < count; ++i)
{
if(all_panes.Item(i).name == pane_name)
{
if(all_panes.Item(i).IsFloating())
{
all_panes.Item(i).frame->Show(!all_panes.Item(i).frame->IsShown());
}
else
{
all_panes.Item(i).Show(!all_panes.Item(i).IsShown());
}
m_FrameManager.Update();
break;
}
}
}
Regards,
T-Rex