Print Page | Close Window

Child window not disabled until resize

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=23920
Printed Date: 23 January 2022 at 5:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Child window not disabled until resize
Posted By: rdhd
Subject: Child window not disabled until resize
Date Posted: 05 November 2019 at 4:55pm
For some reason, when setting a pane's enable state to, say, xtpPaneEnableActions, the child window stays enabled until the user resizes it. I see this when the pane is floating and we call SetEnabled(xtpPaneEnableActions). What the user sees as the mouse moves over controls in the child window is that the controls are active. But, resize the floating frame and they are no longer active. The reason is that CXTPDockingPane::OnSizeParent has to be called because that is where EnableWindow is called to disable the child window (if the xtpPaneEnableClient bit isn't set).

Why wait until the user resizes the pane? I went ahead and added calls to EnableWindow when we set xtpPaneEnableActions or set xtpPaneEnabled to handle floating panes.

Just wondering if there is some reason this isn't done when calling SetEnabled().



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