Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Focus problem with modal dialog in pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Focus problem with modal dialog in pane

 Post Reply Post Reply
Author
Message
Dimitris View Drop Down
Newbie
Newbie


Joined: 06 February 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dimitris Quote  Post ReplyReply Direct Link To This Post Topic: Focus problem with modal dialog in pane
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Dimitris View Drop Down
Newbie
Newbie


Joined: 06 February 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dimitris Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.