ShowPane bug in 13.2.1 |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
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 |