View Issue Details

IDProjectCategoryView StatusLast Update
0004000JEDI VCL00 JVCL Componentspublic2007-01-05 01:10
ReporterShtirlizAssigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionduplicate 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004000: "Cannot set data of control that has no dock orientation" message when loading layout with form docked at CustomDockPanel
Descriptionrunning DockingInCode.exe from jvcl examples, then clicking "Sibling Dock"
then clicking "Save layout" and then "Load layout" results in

"Cannot set data of control that has no dock orientation" message.
Same error I get when loading layout with form docked at CustomDockPanel.

Error fixed when commentint 2 lines in JvDockTree.pas code fragment below
    else
      raise Exception.CreateRes(@RsEDockCannotSetValueWithNoOrient);


procedure TJvDockTree.SetDockSiteSize(const Value: Integer);
begin
  DockSite.Parent.DisableAlign;
  try
    if DockSite.Align in [alRight, alBottom] then
      DockSiteBegin := DockSiteBegin - (Value - DockSiteSize);
    case DockSiteOrientation of
      doVertical:
        DockSite.Width := Value;
      doHorizontal:
        DockSite.Height := Value;
    else
      raise Exception.CreateRes(@RsEDockCannotSetValueWithNoOrient);
    end;
  finally
    DockSite.Parent.EnableAlign;
  end;
end;
TagsNo tags attached.

Relationships

duplicate of 0003902 resolvedobones CustomDock Layout Loading 2 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2006-11-22 04:48 Shtirliz New Issue
2007-01-05 01:07 obones Relationship added duplicate of 0003902
2007-01-05 01:10 obones Status new => closed
2007-01-05 01:10 obones Resolution open => duplicate