Changeset 437 for Docking/CoolDocking/UCDManager.pas
- Timestamp:
- Nov 19, 2012, 2:34:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDManager.pas
r430 r437 104 104 procedure SetMoveDuration(const AValue: Integer); 105 105 procedure CloseHandler(Sender: TObject; var CloseAction: TCloseAction); 106 protected 107 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 108 DropCtl: TControl); virtual; 109 function GetHeaderPos: THeaderPos; virtual; 110 function FindControlInPanels(Control: TControl): TCDManagerItem; virtual; 106 111 public 107 112 Locked: Boolean; … … 114 119 procedure Switch(Index: Integer); virtual; 115 120 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); virtual; 116 procedure Assign(Source: TCDManager); virtual; 117 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 118 DropCtl: TControl); virtual; 119 function GetHeaderPos: THeaderPos; virtual; 121 procedure Assign(Source: TPersistent); override; 120 122 procedure BringToFront; virtual; 121 123 … … 141 143 function AutoFreeByControl: Boolean; override; 142 144 143 function FindControlInPanels(Control: TControl): TCDManagerItem; virtual;144 145 function CreateConjoinForm: TCDConjoinForm; 145 146 function CreateDockableForm: TCDPanelForm; … … 364 365 function TCDManager.GetMoveDuration: Integer; 365 366 begin 366 367 Result := 0; 367 368 end; 368 369 … … 379 380 380 381 constructor TCDManager.Create(ADockSite: TWinControl); 381 var382 NewMenuItem: TMenuItem;383 NewMenuItem2: TMenuItem;384 382 begin 385 383 inherited Create(ADockSite); … … 524 522 525 523 procedure TCDManager.ResetBounds(Force: Boolean); 526 var527 I: Integer;528 Control: TControl;529 R: TRect;530 524 begin 531 525 end; … … 552 546 NewConjoinDockForm := TCDConjoinForm.Create(Application); 553 547 NewConjoinDockForm.Name := GetUniqueName('ConjoinForm'); 554 NewConjoinDockForm.Visible := True;548 NewConjoinDockForm.Visible := False; 555 549 NewConjoinDockForm.BoundsRect := FDockSite.BoundsRect; 556 550 NewConjoinDockForm.CoolDockClient.Master := Self.Master; … … 580 574 procedure TCDManager.SetDockStyle(const AValue: TCDStyleType); 581 575 var 582 I: Integer;583 576 NewManager: TCDManager; 584 577 begin … … 646 639 end; 647 640 648 procedure TCDManager.Assign(Source: TCDManager); 649 begin 650 FDockStyle := Source.FDockStyle; 651 FDockSite := Source.FDockSite; 641 procedure TCDManager.Assign(Source: TPersistent); 642 begin 643 if Source is TCDManager then begin 644 FDockStyle := TCDManager(Source).FDockStyle; 645 FDockSite := TCDManager(Source).FDockSite; 646 end else inherited; 652 647 end; 653 648 … … 718 713 Points: array of TPoint; 719 714 TitleLeft: Integer; 720 TitleWidth: Integer;721 715 TitleMaxWidth: Integer; 722 716 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.