Title Bar Flicker During Dock Panel Rearranging |
Post Reply |
Author | |
Slamma
Newbie Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 08 October 2008 at 2:10pm |
My application has different docking pane arrangements selectable via the main menu. When the user selects a new layout the application rearranges all the docking panes. To arrange them, the application shows all the docking panes using ->ShowPane(), then docks them using ->DockPane(), then hides unused panes for the selected layout using ->ClosePane(). This appears to work properly but the titlebar flickers rapidly during the process and the arrangement takes approximately half a second to arrange a dozen panes or so. Is there something I need to disable while arranging to speed this up and stop the titlebar flicker? |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Use a layout instead! This is how I do it:
m_pPaneLayout = m_paneManager.CreateLayout();
if (!m_pPaneLayout->Load(_T("Layout1")))
{
m_paneManager.CloseAll();
pPane3->SetEnabled(xtpPaneDisabled);
pPane4->SetEnabled(xtpPaneDisabled);
m_paneManager.ShowPane(pPane1, FALSE);
m_paneManager.ShowPane(pPane2, FALSE);
pPane1->SetEnabled(xtpPaneEnabled);
pPane2->SetEnabled(xtpPaneEnabled);
m_paneManager.GetLayout(m_pPaneLayout);
}
|
|
Slamma
Newbie Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Thank you, znakeeye
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |