When do I display |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
Posted: 03 October 2007 at 5:42pm |
I need to hide my task panel and other windows in my docking pane when I am docked with other panes but I am not the active pane.
I have hooked into the notification code but I have not yet found a reliable way to use the events to know when I need to show my windows (or hide them).
If I am docked with multiple panes, I get the xtpPaneActionActivated action event when I click the tab for my pane. Likewise I get xtpPaneActionDeactivated when I click on another tab (if I am active). So I am almost there.
However, if I float the pane and then double-click it to dock it, I get a xtpPaneActionDeactivated notification. I don't get xtpPaneActionActivated unless I click in the pane. I would note that in this case I am the "top" (focused?) pane so I need to effect a dispaly (by doing a ShowWindow(SW_SHOW) on my task panel.
I have also found that when I click the tab of my pane that I get a XTP_DPN_SHOWWINDOW notification. However when I click another pane there is no equivalent "XTP_DPN_HIDEWINDOW" notification.
So I am now hiding on deactivate notification when double-clicking to dock and then showing again when getting the show window event.
Is there a better way to know just when I need to display my child windows (code jock task panel)?
|
|
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 |