Print Page | Close Window

Title Bar Flicker During Dock Panel Rearranging

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=12374
Printed Date: 15 August 2022 at 8:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Title Bar Flicker During Dock Panel Rearranging
Posted By: Slamma
Subject: Title Bar Flicker During Dock Panel Rearranging
Date 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?





Replies:
Posted By: znakeeye
Date 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);
}


Posted By: Slamma
Date Posted: 14 October 2008 at 1:27pm
Thank you, znakeeye



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net