Print Page | Close Window

When does a pane come in view?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6302
Printed Date: 21 May 2024 at 9:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: When does a pane come in view?
Posted By: Jean
Subject: When does a pane come in view?
Date Posted: 02 February 2007 at 5:23am

I like to load the content of a pane only after the pane is visible the first time.
Only the top most pane of a group of tabbed panes is in view when the application starts, so only this pane should load data.
Other panes should load data only when the user clicks on the panetab.

How do I know when a pane comes in view resp. in front?

I am grateful for each suggestion...




Replies:
Posted By: Jean
Date Posted: 08 February 2007 at 4:48am

In other words:

Is there a way to find out which pane of a nested pane group is in front resp. on top?
 
 
How do I find out in source code that PaneB is hidden behind PaneA?
 
Dim Pane As XtremeDockingPane.Pane
For Each Pane In DockingPane1
    Debug.Print Pane.Title & ": ID=" & Pane.Id & ", Closed=" & Pane.Closed & ", Floating=" & Pane.Floating & ", Hidden=" & Pane.Hidden & ", Position=" & Pane.Position & ", Type=" & Pane.Type & ", Enabled=" & Pane.Enabled & ", ParentContainer.hWnd=" & Pane.ParentContainer.hWnd
Next
 
Result:
PaneA: ID=0, Closed=Falsch, Floating=Falsch, Hidden=Falsch, Position=3, Type=0, Enabled=3, ParentContainer.hWnd=2032308
PaneB: ID=1, Closed=Falsch, Floating=Falsch, Hidden=Falsch, Position=3, Type=0, Enabled=3, ParentContainer.hWnd=2032308
PaneC: ID=2, Closed=Falsch, Floating=Falsch, Hidden=Falsch, Position=1, Type=0, Enabled=3, ParentContainer.hWnd=1704806
There is no hint. 


Posted By: Oleg
Date Posted: 08 February 2007 at 5:29am
Hi,
Pane created in first time AttachPane event was called.


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


Posted By: Jean
Date Posted: 08 February 2007 at 9:16am

Now I understand how it works... 

Thanks a lot!


Posted By: Jean
Date Posted: 14 February 2007 at 2:36am
Ok, for most situations this is a solution. But i'm still no satisfied. 
 
Please look at the situation on the picture:
I can notice the following actions when I click on PaneB:
DockingPane1_Action: Action=17, Pane.Id=2, Pane.Title=PaneB

DockingPane1_Action: Action=15, Pane.Id=1, Pane.Title=PaneA

DockingPane1_Action: Action=14, Pane.Id=2, Pane.Title=PaneB

 

For PaneA only the action 15 (PaneActionDeactivated) is fired.

But action 15 is also fired when I click in the TextBox above.

So I don’t know when PaneA is not in view anymore. But this is important in my application!

 
Is there a solution?


Posted By: Oleg
Date Posted: 14 February 2007 at 10:11am
Hi,
you can check Selected property of the pane. if it False, it not visible.


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


Posted By: Jean
Date Posted: 15 February 2007 at 8:39am
It was not exactly was i'm looking for, but it was an inspiration. 
 
In the _Action event I reset the handle for my panes if the action is PaneActionUnpinned or PaneActionCollapsed.
So if a pane is getting visible again, I can catch the _Attach Pane where I set a handle for the visible pane and reset all handles for other panes with the same ParentContainer.hWnd.
I'm still testing, but I think this will work.



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