Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to force a dockingwindow to slide out
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to force a dockingwindow to slide out

 Post Reply Post Reply
Author
Message
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Topic: How to force a dockingwindow to slide out
    Posted: 17 March 2004 at 9:24am
How can I to force a dockingwindow to slide out ?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2004 at 10:19am
Try the ShowPane method. 

 GetDockingPaneManager()->ShowPane(nID);

Where nID is the Id of the docking pane you want to show.


Edited by SuperMario
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2004 at 2:21am

Unfortunately ShowPane(nID) doesn't work with pinned docking windows. It looks like ShowPane assumes the window is already visible.

 

 

 


 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2004 at 6:33am
Have you tried to change the status of the docking pane before you call ShowPane(nID)?  Are you saying that the window that the docking pane is attached to is not visible?
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2004 at 6:57am

>>Have you tried to change the status of the docking pane before you call ShowPane(nID)?

How should I do that ?

>>Are you saying that the window that the docking pane is attached to is not visible?

The docking pane is pinned..I can only see its TAB.

Back to Top
vladsch View Drop Down
Newbie
Newbie


Joined: 04 February 2004
Location: Canada
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote vladsch Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 2:13pm

Here is the code I use to dock a hidden pane, I could not find an reasonably easy way to slideout a hidden pane and not have it immediately slide back in:

        if (m_paneManager.IsPaneClosed(nPaneID) || m_paneManager.IsPaneHidden(nPaneID))
        {
             if (m_paneManager.IsPaneHidden(nPaneID))
             {
                 m_paneManager.ClosePane(nPaneID);
             }
             m_paneManager.ShowPane(nPaneID);
        }

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.203 seconds.