Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Redraw problem of TabbedContainer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redraw problem of TabbedContainer

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Redraw problem of TabbedContainer
    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!



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2007 at 8:53am
Thank you for the information, I will check it out.
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.156 seconds.