Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Create initial hidden pane ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Create initial hidden pane ???

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


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Topic: Create initial hidden pane ???
    Posted: 13 October 2005 at 4:10am
Hi!

XTP 9.70

We have a frame-window and 3 panes. the frame-window and the panes
reside in different MFC extension Dlls, and I would like to display all
after the loading process is completed at once. I am saving the pane-layout
and when I reload the layout the panes get visible BEFORE the frame-window gets displayed.

how can I initially set the panes hidden ?

any help with this would be greatly appreciated,
thanx in advance!

regards,
Hans

Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2005 at 8:16am

this is how I create my Panes in CMainFrame::OnCreate()

 m_paneManager.CreatePane(IDR_PANE_OBJ_PROPERTIES, CRect(0, 0, 300, 120), xtpPaneDockRight)->Close();
 m_paneManager.CreatePane(IDR_PANE_OBJ_NEW, CRect(0, 0, 95, 120), xtpPaneDockLeft)->Close();
 m_paneManager.CreatePane(IDR_PANE_OBJ_LIST, CRect(0, 0, 95, 120), xtpPaneDockLeft)->Close();

this way they are immediately hidden. i don't see them popping up even once...

Back to Top
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2005 at 8:46am
Hi!

thanx for your reply!

I cant use your approach, because my problem occurs wehn I load a
docking pane layout from the registry which creates the panes.
I need a way to to set the visibility state of my panes AFTER they are created either wiht CreatePane() or via the docking pane layout.

regards,
Hans

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 October 2005 at 1:59am

use m_paneManager.FindPane to get pointer and call pPane->Close(); to close it.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2005 at 3:04am
Hi Oleg!

this way the pane probably might shortly get visible and disappear after the Close() call ?! I managed it now via closing floating panes before shutding down my app.
after I reload my app they appear floating again when I show them.

closing a pane seems to be the only way to "hide" a pane. Hiding it doesnt make the pane-window disappear (in case of a floating pane).

regards,
Hans

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.