![]() |
Focus problem with modal dialog in pane |
Post Reply
|
| Author | |
Dimitris
Newbie
Joined: 06 February 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Focus problem with modal dialog in panePosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 February 2006 at 7:19pm |
|
You need to set the dialog as a child.
-Freehawk
|
|
![]() |
|
Dimitris
Newbie
Joined: 06 February 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
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 |