Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - When does a pane come in view?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

When does a pane come in view?

 Post Reply Post Reply
Author
Message
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: When does a pane come in view?
    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...

Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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. 
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: 08 February 2007 at 5:29am
Hi,
Pane created in first time AttachPane event was called.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 9:16am

Now I understand how it works... 

Thanks a lot!
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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?
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: 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
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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.
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.141 seconds.