Print Page | Close Window

How to determine pane state

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=18386
Printed Date: 19 June 2025 at 3:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to determine pane state
Posted By: MacW
Subject: How to determine pane state
Date 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.



Replies:
Posted By: MacW
Date Posted: 17 May 2011 at 6:55pm
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?




Posted By: Oleg
Date Posted: 18 May 2011 at 4:16am
Guess you need IsClosed instead. IsHidden() mean it currently in Auto-Hide mode.

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


Posted By: MacW
Date Posted: 18 May 2011 at 8:14am
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() ?





Posted By: SuperMario
Date Posted: 23 May 2011 at 9:27am
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. 



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