Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Focus problem with modal window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Focus problem with modal window

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


Joined: 19 February 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote eclement Quote  Post ReplyReply Direct Link To This Post Topic: Focus problem with modal window
    Posted: 19 February 2008 at 10:18am
Hi,
 
I have a focus problem when I start a new application in a modal window from my main application.  The window created lost the focus and the only way it can get it, it's with ALT+TAB keys.  And then, when I click on the command bar, the window lost the focus and after if I click at the same place (where the command bar was), the window get the focus back and so on.
 
You can reproduce the problem with OnFileSendMail() from MFC (it will open of new mail message window) or when create a modal window from a new application attached to the main window.
 
I use the version 11.2.2 of Toolkit Pro.
 
Thanks,
Back to Top
cgaskill View Drop Down
Newbie
Newbie


Joined: 13 April 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cgaskill Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2008 at 10:27am
Are you by chance changing the caption of a menu/toolbar control?  I have just ran into a situation where changing the caption of a menu/toolbar control causes the current window to lose focus.
Back to Top
eclement View Drop Down
Newbie
Newbie


Joined: 19 February 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote eclement Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2008 at 11:13am
It is more then a problem of focus lost.  When a create the new modal window (new application), it doesn't have the focus.  When it have it (with ALT+TAB + click on main application), it lost the focus again when I click on the command bar.  If I click again, the window get the focus back and so on (it's a cycle).
 
I found something new, the modal window that I created is present between the main window and all docking windows (all the docking windows are in from of this modal window).
 
Can someone help me?
 
Regards,
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.172 seconds.