Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Title Bar Flicker During Dock Panel Rearranging
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Title Bar Flicker During Dock Panel Rearranging

 Post Reply Post Reply
Author
Message
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Topic: Title Bar Flicker During Dock Panel Rearranging
    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?


Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2008 at 5:30pm

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);
}
Back to Top
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2008 at 1:27pm
Thank you, znakeeye
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.059 seconds.