Print Page | Close Window

When do I display

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=8282
Printed Date: 11 May 2024 at 10:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: When do I display
Posted By: rdhd
Subject: When do I display
Date 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)?



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