Print Page | Close Window

Weird artifact when hiding pane

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=13382
Printed Date: 17 May 2024 at 5:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Weird artifact when hiding pane
Posted By: znakeeye
Subject: Weird artifact when hiding pane
Date Posted: 10 February 2009 at 7:08pm
XTP 13.0.0.
 
I do this in OnDockingPaneNotify():
 
case IDR_PANE1:
    pPane->Attach(&m_paneEdit);
    pPane->Close();
 
If I clear the pane-settings in the Registry, that operation causes an artifact:
 
 
As you can see there is a visible splitter right in the middle of nowhere. I believe this is the top of the closed pane.
 
Am I doing something wrong or is this a bug?


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



Replies:
Posted By: Oleg
Date Posted: 11 February 2009 at 4:41am
Hi,
 
It all depend on code you have :(


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


Posted By: znakeeye
Date Posted: 11 February 2009 at 5:03am
Thought so. What I want to do is this:
Create pane, attach child, and always close (hide?) the pane so it is never visible at startup (no matter what the layout is in the Registry).
 
Any ideas?


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


Posted By: mgampi
Date Posted: 11 February 2009 at 5:17am
Hi;

I do it this way in CMainFrame::OnCreate():

    // Load the previous state for docking panes.
    CXTPDockingPaneLayout layoutNormal(&paneManager_);
    if (layoutNormal.Load(_T("PaneLayout")))
        paneManager_.SetLayout(&layoutNormal);

    // Close initially hidden pane
    paneManager_.ClosePane(ID_PROPERTYDOCK);



-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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