View Issue Details

IDProjectCategoryView StatusLast Update
0001679JEDI VCL00 JVCL Componentspublic2004-04-22 23:31
Reportermiracle2kAssigned Touser72 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001679: JvDocking / MDI Applications / WM_ACTIVATE
Description* I have a MDI Application
* I use JVDocking on the Main Form
* Each MDI Child Form has a memo on it
* I run my app and create a new child win
* I set the focus to the memo in the child window
* I switch to another application
* I switch back to my application
=> The memo on the child window has lost the focus

This does only happen if there are docked forms (if you do not use JvDocking or if no form is docked, the child window is still focused after re-activating).

I think this is because of the code at line 2739 in JvDockControlForm.pas. I'm not sure what that piece of code should exactly do, but it hooks into the message queue und tries to focus the docked windows it can find).

As I said, I can't see why this is done, but if it is not necessary, I would suggest to remove it. Otherwise, perhaps you can add a property to switch this behavior on / off?
TagsNo tags attached.

Activities

user72

2004-04-21 23:53

  ~0003983

Try this:
In TJvDockServer, add a new published boolean property - AutoFocusDockedForm.

In TJvDockServer.WMActivate, change the else to look like this:

...
  else if AutoFocusDockedForm then
  begin
    Control := GetActiveControl(ParentForm);
...

Now, if you set AutoFocusDockedForm to false, does that resolve the problem?

miracle2k

2004-04-22 07:20

reporter   ~0004007

Yes, that would work for me.

user72

2004-04-22 23:31

  ~0004018

Updated in CVS

Issue History

Date Modified Username Field Change
2004-04-21 06:26 miracle2k New Issue
2004-04-21 23:53 user72 Note Added: 0003983
2004-04-21 23:53 user72 Status new => assigned
2004-04-21 23:53 user72 Assigned To => user72
2004-04-21 23:53 user72 Status assigned => feedback
2004-04-22 07:20 miracle2k Note Added: 0004007
2004-04-22 23:31 user72 Status feedback => resolved
2004-04-22 23:31 user72 Resolution open => fixed
2004-04-22 23:31 user72 Note Added: 0004018