Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to hide DockingPane totally?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to hide DockingPane totally?

 Post Reply Post Reply
Author
Message
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Topic: How to hide DockingPane totally?
    Posted: 13 December 2006 at 4:43am
How to hide DockingPane totally, only display a Icon?
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: 13 December 2006 at 6:48am
Display icon where?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2006 at 7:46pm

in sample GUI_Gnome:

CXTPDockingPane* pPaneSearch = m_paneManager.CreatePane(
  IDR_PANE_SEARCH, CRect(0, 0,150, 120), xtpPaneDockLeft);
  m_paneManager.SetIcon(IDR_PANE_SEARCH, pIcon->GetIcon()
  pPaneNew->Hide();
I only want to display search icon, hide search DockingPane totally.
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2006 at 7:48pm

in sample GUI_Gnome:

CXTPDockingPane* pPaneSearch = m_paneManager.CreatePane(
  IDR_PANE_SEARCH, CRect(0, 0,150, 120), xtpPaneDockLeft);
  m_paneManager.SetIcon(IDR_PANE_SEARCH, pIcon->GetIcon();
  pPaneSearch->Hide();
I only want to display search icon, and hide search DockingPane totally.
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2006 at 8:04pm
I'd like to hide and show a CXTPDockingPane completly, so it is visible or invisible to the user (like ShowWindow). HidePane just hides the pane and shows a icon for the docking pane.
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: 14 December 2006 at 12:37am
Hi,
Did you try pPane->Close() instead pPane->Hide() ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2006 at 2:31am
I have tried pPane->Close() , pPaneSearch is invisible completly, even icon is invisible. It's a wrong method.
any other idea?
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: 14 December 2006 at 6:53am
I dont' undestand. what "completly" means for you and what "only icon must appear".  Where this icon must appear if pane will be completly invisible?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2006 at 7:38pm
HidePane just hides the pane and shows a Tab(with a icon) for the docking pane. thus when user click tab, the pane will slide out.
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.125 seconds.