Changeset 193 for Docking/CoolDocking/Managers/UCDManagerRegions.pas
- Timestamp:
- Mar 11, 2011, 10:57:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r192 r193 14 14 end; 15 15 16 { TCD StyleRegions }17 18 TCD StyleRegions = class(TCDManager)16 { TCDManagerRegions } 17 18 TCDManagerRegions = class(TCDManager) 19 19 private 20 20 function GetDirection(InsertAt: TAlign): TCDDirection; … … 28 28 destructor Destroy; override; 29 29 procedure UpdateClientSize; override; 30 procedure DoSetVisible(const AValue: Boolean); 30 procedure DoSetVisible(const AValue: Boolean); override; 31 31 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); 32 32 property DockDirection: TCDDirection read FDockDirection … … 40 40 41 41 42 { TCD StyleRegions }43 44 function TCD StyleRegions.GetDirection(InsertAt: TAlign): TCDDirection;42 { TCDManagerRegions } 43 44 function TCDManagerRegions.GetDirection(InsertAt: TAlign): TCDDirection; 45 45 begin 46 46 Result := ddHorizontal; … … 53 53 end; 54 54 55 procedure TCD StyleRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign;55 procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign; 56 56 DropCtl: TControl); 57 57 var … … 107 107 end; 108 108 109 procedure TCD StyleRegions.RemoveControl(Control: TControl);109 procedure TCDManagerRegions.RemoveControl(Control: TControl); 110 110 var 111 111 ClientPanel: TCDClientPanel; … … 134 134 end; 135 135 136 constructor TCDStyleRegions.Create(ADockSite: TWinControl); 137 var 138 I: Integer; 139 begin 140 inherited; 136 constructor TCDManagerRegions.Create(ADockSite: TWinControl); 137 var 138 I: Integer; 139 begin 140 inherited; 141 FDockStyle := dsList; 141 142 //Panels := TObjectList.Create; 142 143 … … 151 152 end; 152 153 153 destructor TCD StyleRegions.Destroy;154 destructor TCDManagerRegions.Destroy; 154 155 begin 155 156 //Panels.Free; … … 157 158 end; 158 159 159 procedure TCD StyleRegions.UpdateClientSize;160 procedure TCDManagerRegions.UpdateClientSize; 160 161 var 161 162 I: Integer; … … 200 201 end; 201 202 202 procedure TCD StyleRegions.DoSetVisible(const AValue: Boolean);203 var 204 I: Integer; 205 begin 206 // inherited SetVisible(AValue);203 procedure TCDManagerRegions.DoSetVisible(const AValue: Boolean); 204 var 205 I: Integer; 206 begin 207 inherited; 207 208 for I := 0 to DockPanels.Count - 1 do 208 209 … … 222 223 end; 223 224 224 procedure TCD StyleRegions.ChangeVisible(Control: TWinControl;225 procedure TCDManagerRegions.ChangeVisible(Control: TWinControl; 225 226 Visible: Boolean); 226 227 begin
Note:
See TracChangeset
for help on using the changeset viewer.