Changeset 208 for Docking/CoolDocking/UCDLayout.pas
- Timestamp:
- Mar 18, 2011, 1:24:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDLayout.pas
r191 r208 27 27 UndockSize: TPoint; 28 28 DockStyle: TCDStyleType; 29 HeaderPos: THeaderPos; 29 30 Processed: boolean; 30 31 procedure SaveToNode(Node: TDOMNode); … … 286 287 NewNode.TextContent := IntToStr(RestoredRect.Left); 287 288 AppendChild(NewNode); 289 NewNode := OwnerDocument.CreateElement('HeaderPos'); 290 NewNode.TextContent := IntToStr(Integer(HeaderPos)); 291 AppendChild(NewNode); 288 292 end; 289 293 end; … … 349 353 if Assigned(NewNode) then 350 354 RestoredRect.Height := StrToInt(NewNode.TextContent); 355 NewNode := FindNode('HeaderPos'); 356 if Assigned(NewNode) then 357 HeaderPos := THeaderPos(StrToInt(NewNode.TextContent)); 351 358 end; 352 359 end; … … 366 373 Rect.Width := Form.Width; 367 374 Rect.Height := Form.Height; 375 if Assigned(Form.DockManager) then 376 HeaderPos := TCDManager(Form.DockManager).HeaderPos; 368 377 if Form is TForm then 369 378 begin … … 422 431 Form.UndockHeight := UndockSize.Y; 423 432 Form.Visible := Visible; 433 if Assigned(Form.DockManager) then 434 TCDManager(Form.DockManager).HeaderPos := HeaderPos; 424 435 if HostDockSiteName <> '' then 425 436 begin
Note:
See TracChangeset
for help on using the changeset viewer.