Redraw problem of TabbedContainer |
Post Reply |
Author | |
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
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! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Thank you for the information, I will check it out.
|
|
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 |