View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001679 | JEDI VCL | 00 JVCL Components | public | 2004-04-21 06:26 | 2004-04-22 23:31 |
Reporter | miracle2k | Assigned To | user72 | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001679: 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? | ||||
Tags | No tags attached. | ||||
|
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? |
|
Yes, that would work for me. |
|
Updated in CVS |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-04-21 06:26 | miracle2k | New Issue | |
2004-04-21 23:53 |
|
Note Added: 0003983 | |
2004-04-21 23:53 |
|
Status | new => assigned |
2004-04-21 23:53 |
|
Assigned To | => user72 |
2004-04-21 23:53 |
|
Status | assigned => feedback |
2004-04-22 07:20 | miracle2k | Note Added: 0004007 | |
2004-04-22 23:31 |
|
Status | feedback => resolved |
2004-04-22 23:31 |
|
Resolution | open => fixed |
2004-04-22 23:31 |
|
Note Added: 0004018 |