Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to determine pane state
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to determine pane state

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: How to determine pane state
    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.
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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?


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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() ?



Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.