Print Page | Close Window

Create initial hidden 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=3026
Printed Date: 12 December 2024 at 3:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Create initial hidden pane ???
Posted By: hpesata
Subject: Create initial hidden pane ???
Date 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




Replies:
Posted By: Barto
Date 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...



Posted By: hpesata
Date 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



Posted By: Oleg
Date 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


Posted By: hpesata
Date 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




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