Regarding pane layouts |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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.
|
|
Smucker
Senior Member Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
|
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) |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
That simple huh? Thanks :)
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Nope, that doesn't do the trick. Ctrl+Tab still shows the pane, which can then be opened again.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You need ClosePane + pPane->SetEnabled(xtpPaneDisabled);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Smucker
Senior Member Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
|
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) |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Ah, great! Thanks a lot!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |