Docking Panes and Task Panels |
Post Reply |
Author | |
Geraint P
Newbie Joined: 13 September 2004 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 13 September 2004 at 11:39am |
I have a docking pane which when created is set by default to be hidden. Attached to the pane is a form. As soon as I put a task panel on this form the docking pane refuses to pin to the side of the screen (i.e. it remains as an auto-hide pane). Remove the task panel and everything works as expected. Any ideas? Incidentally, is there any way to capture an event prior to a pane being selected/clicked/shown? i.e. if you have a set of panes attached to each other is there an event fired when a particular tab is clicked on, and the pane displayed? The Action event under for the DockingPane doesn't seem to include anything like this.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I can not reproduce your taskpanel behavior. Maybe you can post a sample project that illustrates this.
Look at this post where I offer a solution to the pane selected problem. No, the action event is not fired when a pane is selected in a group of panes. |
|
Geraint P
Newbie Joined: 13 September 2004 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Looks like the taskpanel was a red herring. I've cut the problem down to the absolute minimum code and uploaded it. 2004-09-14_044034_UnpinnableExample.zip Looks like the problem is to do with when you attach the form handle to the pane. Works fine if I do it in AttachPane, but not if I attach the handle when creating the pane. Probably something I'm doing wrong admittedly. One more question. Is it true to say that AttachPane is only called when a pane is first displayed? So if I create a pane with no handle, which is hidden, then the AttachPane event is only fired when the tab for that pane is clicked?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
EDIT****OK, I finally see the problem. I would use AttachPane****
Yes, attachpane is only called when then pane is first shown. So you must keep track of the form handle that you attached to it. It will be fired when the hidden tab is clicked or on mouse over, which ever method show the pane. Edited by SuperMario |
|
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 |