Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Weird artifact when hiding pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Weird artifact when hiding pane

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Weird artifact when hiding pane
    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/
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: 11 February 2009 at 4:41am
Hi,
 
It all depend on code you have :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.