Print Page | Close Window

Regarding pane layouts

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=11340
Printed Date: 26 June 2024 at 3:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Regarding pane layouts
Posted By: znakeeye
Subject: Regarding pane layouts
Date Posted: 08 July 2008 at 8:30am
I have multiple views (no CDocument) in my SDI (could be MDI). When I make a view active, I want different panes to be shown dependent on the type of view.
 
How would you implement this properly?
 
Panes must be completely hidden...
As I see it, the panes must be destroyed/created to accomplish this. That is not acceptable! What I need is to make some panes completely hidden - they must be hidden until explicitly made visible.
 
Any ideas? Thanks!
 
Sample usage:
View1 is selected and pane1|pane2|pane3 are shown.
View2 is selected and pane4|pane5 are shown.



Replies:
Posted By: Smucker
Date Posted: 08 July 2008 at 8:36am
Use ClosePane() and ShowPane()



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)



Posted By: znakeeye
Date Posted: 08 July 2008 at 9:02am
That simple huh? Thanks :)


Posted By: znakeeye
Date Posted: 08 July 2008 at 9:55am
Nope, that doesn't do the trick. Ctrl+Tab still shows the pane, which can then be opened again.


Posted By: Oleg
Date Posted: 08 July 2008 at 12:42pm
Hi,
You need ClosePane + pPane->SetEnabled(xtpPaneDisabled);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Smucker
Date Posted: 08 July 2008 at 12:43pm
Sorry, you also need this to prevent it from showing in the window list:

  m_paneManager.FindPane(id)->SetEnabled(xtpPaneDisabled);


EDIT: Jinx



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)



Posted By: znakeeye
Date Posted: 11 July 2008 at 9:40am
Ah, great! Thanks a lot!



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