Changeset 244 for Docking/CoolDocking/Managers/UCDManagerTabs.pas
- Timestamp:
- May 19, 2011, 3:14:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r233 r244 218 218 begin 219 219 inherited PaintSite(DC); 220 PageControl.Invalidate;220 //PageControl.Invalidate; 221 221 end; 222 222 … … 333 333 I: Integer; 334 334 NewTabSheet: TTabSheet; 335 DeletedPage: TTabSheet; 335 336 begin 336 337 for I := 0 to DockItems.Count - 1 do … … 338 339 //Control.Tag := Integer(dhtTemporal); 339 340 //Control.Visible := False; 340 //Control.Parent := nil; 341 //if I >= DockItems.Count then 342 // Control.Parent := nil; 341 343 end; 342 344 … … 344 346 // TCDManagerTabsItem(DockItems[DockItems.Count - 1]).Control.Visible := False; 345 347 // TCDManagerTabsItem(DockItems[DockItems.Count - 1]).Control.Parent := nil; 346 //PageControl.Pages[PageControl.PageCount - 1].Parent := nil; 347 PageControl.Pages[PageControl.PageCount - 1].Free; 348 349 PageControl.OnChange := nil; 350 DeletedPage := PageControl.Pages[PageControl.PageCount - 1]; 351 DeletedPage.Parent := nil; 352 PageControl.OnChange := TabControlChange; 353 DeletedPage.Free; 348 354 TabImageList.Delete(TabImageList.Count - 1); 349 355 end; … … 359 365 PageControl.Pages[I].ImageIndex := I; 360 366 TabImageList.Replace(I, IconImage.Picture.Bitmap, nil); 367 //if (I < PageControl.PageCount) and Assigned(PageControl.Pages[I]) then 361 368 Control.Parent := PageControl.Pages[I]; 362 369 Control.Align := alClient;
Note:
See TracChangeset
for help on using the changeset viewer.