![]() |
How to determine pane state |
Post Reply ![]() |
Author | |
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() Posted: 17 May 2011 at 6:39pm |
I need to know if a pane is visible or hidden.
This must work in docked state, floating state, or when the pane is tabbed. When I just call IsHidden() XTP always returns true if the container is in auto-hide mode, even when the panel is currently clearly visible. Since there is as usual no documentation about how all these methods relate, can somebody explain me which method of the panel or the container I need to call to find out if the user can currently see a panel? Thanks. |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
Also please explain what the DockingPane methods
IsHidden IsFocused IsClosed IsFloating IsSelected mean. The online help just gives rather useless one-liners, like IsHidden: Returns true when pane is hidden But IsHidden also returns true if I can clearly see the pane. So, please, when is a pane floating but not hidden? What is the difference between IsClosed and IsHidden? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Guess you need IsClosed instead. IsHidden() mean it currently in Auto-Hide mode.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
Hi, Oleg
I think IsSelected() may be it? I have three panes inside the docking container. Only one of the panes is the active (seleced?) pane at any time. When the container is docked and not auto-hide and I want to know which of the panes is shown to the user (visible), the method IsSelected() returns true for the pane that is visible (the pane associated with the active tab). When the container is auto-hide and the user clicks on the tab to open the container, the pane in front and active also returns true for IsSelected(). Under which conditions does a panel return true for IsClosed() ? |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Closed mean the pane is closed, it is not auto-hidden, so the pane has no tabs visible.
Selected means the active pane within a group of panes. So single panes not group will be true since they are the only pane in the group.
|
|
![]() |
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 |