![]() |
Get Active Pane |
Post Reply
|
| Author | |
developer
Newbie
Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Topic: Get Active PanePosted: 05 August 2004 at 10:50am |
|
I am trying to determine what pane is currently selected/active, regardless of whether it is docked or hidden or floating. I have a custom Theme that changes the selected/active Panes title bars color to orange when it is selected/active. I want the function to return a ptr to that Pane. I didn't find a function that did what I was looking for so I tried to write one but it is not working. I need this so that I can set focus back to what last had focus during certain situations. This is what my current function looks like. Any suggestions or does anyone know of any other function that already does what I am looking for?
Edited by developer |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 August 2004 at 7:25am |
|
I believe you can use the IsSelected and Select methods defined in
XTPDockingPane.h or IsPaneSelected defined in XTPDockingPaneManager.h.
|
|
![]() |
|
developer
Newbie
Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 August 2004 at 9:34am |
|
I tried that. Every pane seems to return true for IsPaneSelected. I think IsPaneSelected tells you which pane is selected if the tabs are showing (meaning, more then one pane is attached to another.) I also tried IsSelected but IsPaneSelected calls IsSelected on the pane.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 August 2004 at 5:29am |
|
In your method replace: if (pContainer && pContainer->IsActive()) to if (pContainer && pContainer->IsActive()) |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
developer
Newbie
Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 August 2004 at 9:47am |
|
When the item is floating. GetContainer() returns NULL. How do I find the selected pane at that point? Thanks.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 August 2004 at 2:20am |
|
It can't be truth. Container for DockingPane is always CXTPDockingPaneTabbedContainer if it visible.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |