Changeset 216 for Docking/CoolDocking/Managers/UCDManagerTabs.pas
- Timestamp:
- Mar 22, 2011, 9:49:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r215 r216 90 90 // Show current dock clients in parent dock sites 91 91 if TControl(Sender).Visible then 92 TControl(Sender).HostDockSite.Visible := True; 92 if Assigned(TControl(Sender).HostDockSite) then 93 TControl(Sender).HostDockSite.Visible := True; 93 94 94 95 {Temp := TControl(Sender); … … 271 272 if Assigned(ManagerItem) then begin 272 273 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 273 end ;274 end else raise Exception.Create(Format('Control %s not found in DockItems', [Control.Name])); 274 275 275 276 DockItems.Remove(ManagerItem); … … 285 286 end else TCDManagerItem(DockItems[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 286 287 ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 288 //UpdateClientSize; 289 inherited RemoveControl(Control); 287 290 Free; 288 end; 289 end else UpdateClientSize; 291 Exit; 292 end; 293 end; 294 //if ClientCount > 0 then 295 UpdateClientSize; 290 296 inherited RemoveControl(Control); 291 297 end; … … 346 352 347 353 while PageControl.PageList.Count > DockItems.Count do begin 348 TCDManagerTabsItem(DockItems[I]).Control.Parent := nil; 349 PageControl.Pages[PageControl.PageCount - 1].Parent := nil; 354 // TCDManagerTabsItem(DockItems[DockItems.Count - 1]).Control.Visible := False; 355 // TCDManagerTabsItem(DockItems[DockItems.Count - 1]).Control.Parent := nil; 356 //PageControl.Pages[PageControl.PageCount - 1].Parent := nil; 350 357 PageControl.Pages[PageControl.PageCount - 1].Free; 351 358 TabImageList.Delete(TabImageList.Count - 1);
Note:
See TracChangeset
for help on using the changeset viewer.