Changeset 198 for Docking/CoolDocking/UCDCommon.pas
- Timestamp:
- Mar 16, 2011, 12:32:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDCommon.pas
r192 r198 12 12 TCDHideType = (dhtPermanent, dhtTemporal); 13 13 TCDDirection = (ddNone, ddHorizontal, ddVertical); 14 THeaderPos = (hpAuto, hpLeft, hpTop, hpRight, hpBottom); 14 15 15 16 TCDMasterBase = class; … … 64 65 FPanel: TPanel; 65 66 procedure SetMaster(const AValue: TCDMasterBase); 66 procedure SetPanel(const AValue: TPanel); 67 public 68 procedure SetPanel(const AValue: TPanel); virtual; 67 69 published 68 70 property Master: TCDMasterBase read FMaster … … 117 119 118 120 procedure TCDClientBase.SetPanel(const AValue: TPanel); 119 var120 OldPanel: TPanel;121 121 begin 122 122 if FPanel = AValue then exit; 123 OldPanel := FPanel;123 if Assigned(FPanel) then FPanel.DockSite := False; 124 124 FPanel := AValue; 125 if not (csDesigning in ComponentState) then begin126 if Assigned(FPanel) then127 with FPanel do begin128 DockSite := True;129 UseDockManager := True;130 //DockManager := TCoolDockManager.Create(FPanel);131 end else begin132 OldPanel.DockSite := False;133 end;134 end;135 125 end; 136 126
Note:
See TracChangeset
for help on using the changeset viewer.