Changeset 193 for Docking/CoolDocking/Managers/UCDManagerTabs.pas
- Timestamp:
- Mar 11, 2011, 10:57:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r192 r193 11 11 type 12 12 13 { TCD StyleTabs }14 15 TCD StyleTabs = class(TCDManager)13 { TCDManagerTabs } 14 15 TCDManagerTabs = class(TCDManager) 16 16 public 17 17 MouseDown: Boolean; … … 35 35 public 36 36 constructor Create(ADockSite: TWinControl); 37 procedure DoSetVisible(const AValue: Boolean); 37 procedure DoSetVisible(const AValue: Boolean); override; 38 38 destructor Destroy; override; 39 39 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; … … 49 49 UCDClient; 50 50 51 { TCD StyleTabs }52 53 procedure TCD StyleTabs.PopupMenuTabCloseClick(Sender: TObject);51 { TCDManagerTabs } 52 53 procedure TCDManagerTabs.PopupMenuTabCloseClick(Sender: TObject); 54 54 begin 55 55 if Assigned(PageControl.ActivePage) then … … 57 57 end; 58 58 59 procedure TCD StyleTabs.TabControlMouseLeave(Sender: TObject);59 procedure TCDManagerTabs.TabControlMouseLeave(Sender: TObject); 60 60 begin 61 61 if MouseDown then … … 67 67 end; 68 68 69 procedure TCD StyleTabs.TabControlChange(Sender: TObject);69 procedure TCDManagerTabs.TabControlChange(Sender: TObject); 70 70 var 71 71 I: Integer; … … 120 120 end; 121 121 122 procedure TCD StyleTabs.TabControlMouseDown(Sender: TObject;122 procedure TCDManagerTabs.TabControlMouseDown(Sender: TObject; 123 123 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 124 124 begin … … 130 130 end; 131 131 132 procedure TCD StyleTabs.TabControlMouseUp(Sender: TObject;132 procedure TCDManagerTabs.TabControlMouseUp(Sender: TObject; 133 133 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 134 134 begin … … 136 136 end; 137 137 138 constructor TCD StyleTabs.Create(ADockSite: TWinControl);138 constructor TCDManagerTabs.Create(ADockSite: TWinControl); 139 139 var 140 140 NewMenuItem: TMenuItem; … … 144 144 begin 145 145 inherited; 146 FDockStyle := dsTabs; 146 147 TabImageList := TImageList.Create(ADockSite); //FDockSite); 147 148 with TabImageList do begin … … 177 178 end; 178 179 179 destructor TCD StyleTabs.Destroy;180 destructor TCDManagerTabs.Destroy; 180 181 begin 181 182 PageControl.Free; … … 184 185 end; 185 186 186 procedure TCD StyleTabs.Switch(Index: Integer);187 procedure TCDManagerTabs.Switch(Index: Integer); 187 188 begin 188 189 PageControl.TabIndex := Index; 189 190 end; 190 191 191 procedure TCD StyleTabs.InsertControlNoUpdate(AControl: TControl; InsertAt: TAlign);192 procedure TCDManagerTabs.InsertControlNoUpdate(AControl: TControl; InsertAt: TAlign); 192 193 var 193 194 NewTabSheet: TTabSheet; … … 232 233 end; 233 234 234 procedure TCD StyleTabs.RemoveControl(Control: TControl);235 procedure TCDManagerTabs.RemoveControl(Control: TControl); 235 236 begin 236 237 inherited RemoveControl(Control); 237 238 end; 238 239 239 procedure TCD StyleTabs.InsertControlPanel(AControl: TControl; InsertAt: TAlign;240 procedure TCDManagerTabs.InsertControlPanel(AControl: TControl; InsertAt: TAlign; 240 241 DropCtl: TControl); 241 242 var … … 247 248 end; 248 249 249 procedure TCD StyleTabs.UpdateClientSize;250 procedure TCDManagerTabs.UpdateClientSize; 250 251 var 251 252 I: Integer; … … 259 260 end; 260 261 261 procedure TCDStyleTabs.DoSetVisible(const AValue: Boolean); 262 begin 262 procedure TCDManagerTabs.DoSetVisible(const AValue: Boolean); 263 begin 264 inherited; 263 265 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockPanels.Count) then 264 266 with TCDClientPanel(DockPanels[PageControl.TabIndex]) do begin … … 274 276 end; 275 277 276 procedure TCD StyleTabs.ChangeVisible(Control: TWinControl; Visible: Boolean);278 procedure TCDManagerTabs.ChangeVisible(Control: TWinControl; Visible: Boolean); 277 279 var 278 280 I: Integer; … … 318 320 end; 319 321 320 procedure TCD StyleTabs.SetTabsPos(const AValue: THeaderPos);322 procedure TCDManagerTabs.SetTabsPos(const AValue: THeaderPos); 321 323 begin 322 324 if FTabsPos = AValue then Exit;
Note:
See TracChangeset
for help on using the changeset viewer.