Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
3998 00 JVCL Components minor always 2006-11-10 20:09 2007-06-19 03:28
Kiriakos  
obones  
normal  
resolved Daily / GIT  
fixed  
none    
none 3.34  
0003998: JvDocking: Hidden Tabbed forms reappearing in VSNetStyle when reloading
To reproduce:

- Open the JvDocking\AdvanceDemo
- Set the docking style to VSNet
- Compile and Run
- Create three VSNet Windows and dock them in TabHostForm (Page Control)
- Hide one of the forms by clicking the close button
- Save layout to ini file.
- Load layout from ini file

The hidden dock form reappers.

Solution:

In JvDockControlForm.pas change the if statement of TJvDockTabPageControl.LoadFromStream to:

    if ControlName <> '' then
    begin
      ReloadDockedControl(ControlName, AControl);
      if AControl <> nil then
      begin
        AControl.ManualDock(Self, nil, alClient);
        { DockClients[Index] is always AControl? }
        DockClients[Index].Visible := Boolean(SheetVisible);
        // Two lines added similar to those in SaveToStream
        if (Self is TJvDockVSNETTabPageControl) and (Index = Count - 1) then
          TJvDockVSNETTabSheet(Pages[Index]).OldVisible := Boolean(SheetVisible);
        Inc(Index);
      end;
    end;


Issue History
2006-11-10 20:09 Kiriakos New Issue
2007-06-19 03:28 obones Status new => resolved
2007-06-19 03:28 obones Fixed in Version => Daily / SVN
2007-06-19 03:28 obones Resolution open => fixed
2007-06-19 03:28 obones Assigned To => obones
2007-06-19 03:28 obones Note Added: 0013398

Notes
(0013398)
obones   
2007-06-19 03:28   
This is now in SVN