Child window not disabled until resize |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 891 |
Post Options
Thanks(0)
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().
|
|
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 |