Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - focus get lost
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

focus get lost

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: focus get lost
    Posted: 06 October 2004 at 2:20pm

I have a little problem in my editor application which uses tabbed mdi like your MDI sample where itīs able to reproduce the problem:
If I type something in the edit control the cursor/focus is there. Now if you open the HELP | ABOUT dialog and click on the OK button the cursor/focus does not return to the edit control. I have to click with the mouse into the edit control to continue typing.
Does anyone know how to prevent this behavior and make the focus return to the control it was before ?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 07 October 2004 at 1:05am

If you create simple MDI application (with Wizard) without CommandBars, add AboutBox as

MsgBox "Version " & App.Major & "." & App.Minor & "." & App.Revision

you will see same problem.  It is VB problem not CommandBars.

 

little hint:

MsgBox "Version " & App.Major & "." & App.Minor & "." & App.Revision
Screen.ActiveControl.SetFocus

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2004 at 3:23am
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2004 at 2:31pm

thanks oleg,
your workaround help !

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.156 seconds.