Print Page | Close Window

Redraw problem of TabbedContainer

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=6231
Printed Date: 12 December 2024 at 11:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Redraw problem of TabbedContainer
Posted By: akur
Subject: Redraw problem of TabbedContainer
Date Posted: 26 January 2007 at 6:18am
Hello,

since using XTP v10.4.1, I realized that tabbed containers are not redrawn properly when opening/closing one of its panes from code several times. The pane opened/closed simply remains closed/opened (visually only!) until I resize the mainframe.

Take the PaneSample of v10.4.1 and modify CMainFrame::OnShowPane() like this:

void CMainFrame::OnShowPane(UINT nID)
{
    CXTPDockingPane* pPane = m_paneManager.FindPane(nID);
    if (pPane->IsClosed())
        m_paneManager.ShowPane(pPane);
    else
        m_paneManager.ClosePane(pPane);

}


Launch PaneSample and organize the panes just like this:



The code changes in OnShowPane() will allow us to use menu item "Docking Pane" --> "Panes" --> "Pane 6" to close pane6, the to re-open it, close it again, etc.

If I do it several times, suddenly Pane6 does not disappear when it should go away or it does not appear when it should become visible. Sometimes, I get even half-redrawn tabs in seldom cases. It looks then weird:



If I resize MainFrame just a little bit, every tab gets repainted correctly at once.
I did not experience this problem with older versions of XTP.
Can this be avoided/fixed somehow?

Thank you, in advance!






Replies:
Posted By: Oleg
Date Posted: 29 January 2007 at 3:36am
Hi,
 
Yes, it was :(
 
Please download 10.4.2 it have to be fixed.
 
Thanks a lot for you help.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: akur
Date Posted: 30 January 2007 at 8:53am
Thank you for the information, I will check it out.



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