Print Page | Close Window

Focus problem with modal dialog in pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3663
Printed Date: 10 November 2025 at 1:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Focus problem with modal dialog in pane
Posted By: Dimitris
Subject: Focus problem with modal dialog in pane
Date Posted: 16 February 2006 at 9:35am
Hello,

We have an MDI application with a few panes docked in the bottom of the main window. All of the panes contain CFormView-derived classes and one of them brings up a modal dialog on update whenever a condition is met.

The problem is, that after the modal dialog is dismissed, the user cannot click anywhere but on the bottom panes, he can't close the main window, he can't click on anything else but one of the panes in the bottom.
And the weirdest part is that if he clicks on any other window and returns to our application, everything is clickable again.

I tried manually setting the focus to some other window, like the mainframe or the pane itself, but nothing changes, it seems that the active view gets the focus and it doesn't loose it in any way (I even tried manually sending it a WM_KILLFOCUS message!).

Any help will be appreciated, thanks in advance.



Replies:
Posted By: Oleg
Date Posted: 17 February 2006 at 8:07am

Hello,

Just tried to add modal dialog to our DynamicPanes sample and can't reproduce problem, may be yo ucan modify some our sample or creeate new to show this problem?



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freehawk
Date Posted: 23 February 2006 at 7:19pm

You need to set the dialog as a child.

 

-Freehawk

 

 

Originally posted by Dimitris Dimitris wrote:

Hello,

We have an MDI application with a few panes docked in the bottom of the main window. All of the panes contain CFormView-derived classes and one of them brings up a modal dialog on update whenever a condition is met.

The problem is, that after the modal dialog is dismissed, the user cannot click anywhere but on the bottom panes, he can't close the main window, he can't click on anything else but one of the panes in the bottom.
And the weirdest part is that if he clicks on any other window and returns to our application, everything is clickable again.

I tried manually setting the focus to some other window, like the mainframe or the pane itself, but nothing changes, it seems that the active view gets the focus and it doesn't loose it in any way (I even tried manually sending it a WM_KILLFOCUS message!).

Any help will be appreciated, thanks in advance.



Posted By: Dimitris
Date Posted: 24 February 2006 at 9:06am
Nope, that didn't work either.

I resorted to making the dialog modeless and just showing and hiding it accordingly.



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