Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003753 [JEDI VCL] 00 JVCL Components major always 2006-06-08 21:31 2006-06-09 01:15
Reporter Kiriakos View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.20
Summary 0003753: Reopen 0003052 JvDocking save/load bug handling embedded forms
Description The fix provided for 3052 creates problems at least with JvDockVSNetStyle.

The problem occures when you save a layout with autohidden docked forms and then you try to restore it. See in attached image for what happens. The modification excludes the Main Form of the application typically containing the DockServer and DoFloatForm contains code specifically for that.

Additional Information Possible solution not fully tested for all scenarios but certainly better and safer than the provided one.

Modify DoFloatAllForm to:

procedure DoFloatAllForm;
var
  I: Integer;
  TempList: TList;
begin
  TempList := TList.Create;
  try
    for I := 0 to Screen.CustomFormCount - 1 do
      if not (Screen.CustomForms[I] is TJvDockableForm) and
        (Assigned(FindDockClient(Screen.CustomForms[I])) or
         Assigned(FindDockServer(Screen.CustomForms[I]))) then
          TempList.Add(Screen.CustomForms[I]);

    for I := 0 to TempList.Count - 1 do
      DoFloatForm(TempList[I]);
  finally
    TempList.Free;
  end;
  FreeAllDockableForm;
end;
Tags No tags attached.
Attached Files jpg file icon screen1.jpg [^] (88,509 bytes) 2006-06-08 21:31

- Relationships
related to 0003052resolvedremkobonte JvDocking save/load bug handling embedded forms 

-  Notes
(0009504)
obones (administrator)
2006-06-09 01:15

This is now in SVN.

- Issue History
Date Modified Username Field Change
2006-06-08 21:31 Kiriakos New Issue
2006-06-08 21:31 Kiriakos File Added: screen1.jpg
2006-06-09 00:57 obones Relationship added related to 0003052
2006-06-09 01:15 obones Status new => resolved
2006-06-09 01:15 obones Resolution open => fixed
2006-06-09 01:15 obones Assigned To => obones
2006-06-09 01:15 obones Note Added: 0009504


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker