View Issue Details

IDProjectCategoryView StatusLast Update
0003998JEDI VCL00 JVCL Componentspublic2007-06-19 03:28
ReporterKiriakosAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.34 
Summary0003998: JvDocking: Hidden Tabbed forms reappearing in VSNetStyle when reloading
DescriptionTo 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;


TagsNo tags attached.

Activities

obones

2007-06-19 03:28

administrator   ~0013398

This is now in SVN

Issue History

Date Modified Username Field Change
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