Changeset 198 for Docking/CoolDocking/UCDClient.pas
- Timestamp:
- Mar 16, 2011, 12:32:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDClient.pas
r194 r198 17 17 18 18 type 19 20 { TCDClient } 21 19 22 TCDClient = class(TCDClientBase) 20 23 private … … 23 26 procedure SetDockable(const AValue: Boolean); 24 27 procedure SetFloatable(const AValue: Boolean); 28 procedure SetPanel(const AValue: TPanel); override; 25 29 public 26 30 constructor Create(AOwner: TComponent); override; … … 78 82 end; 79 83 84 procedure TCDClient.SetPanel(const AValue: TPanel); 85 begin 86 inherited SetPanel(AValue); 87 if not (csDesigning in ComponentState) then begin 88 if Assigned(Panel) then 89 with Panel do begin 90 DockSite := True; 91 UseDockManager := True; 92 DockManager := TCDManagerRegions.Create(Panel); 93 end; 94 end; 95 end; 96 80 97 constructor TCDClient.Create(AOwner: TComponent); 81 98 begin
Note:
See TracChangeset
for help on using the changeset viewer.