Print Page | Close Window

ShowPane bug in 13.2.1

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=16116
Printed Date: 14 May 2024 at 3:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShowPane bug in 13.2.1
Posted By: znakeeye
Subject: ShowPane bug in 13.2.1
Date Posted: 01 February 2010 at 10:26am
I know for sure that there is a bug in the Docking Pane logic. Please look at this before releasing the next version. (I have no time creating a full sample at the moment.)
 
1) Create panes A and B.
2) Hide pane A. Disable pane A.
4) Create layout B' (only B visible).
5) Show pane A. Enable pane A. Hide pane B. Disable pane B.
6) Create layout A' (only pane A visible).
7) Load layout A' (pane A is created).
 
Pane A is visible, B is hidden (with no window attached). Now I want to show B!
 
paneManager.ShowPane(B); // Generates XTPWM_DOCKINGPANE_NOTIFY message!
 
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
    if (wParam == XTP_DPN_SHOWWINDOW)
    {
        CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
        if (!pPane->IsValid()) // Pane B is marked as valid, which is wrong!
        {
             // Window of B is never created!
        }
    }
}
 
I'm not sure exactly how this is possible, but it only happens when creating and loading pane layouts!
 
A workaround is to pre-create the pane window in OnCreate(), but that is not a good approach!


-------------
PokerMemento - http://www.pokermemento.com/



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