Ignore:
Timestamp:
Mar 22, 2011, 11:32:28 AM (13 years ago)
Author:
george
Message:
  • Fixed: If control docked to panel owned by main form then it was possible to redock main form to conjoin form.
  • Modified: Header title is now painted to canvas instead of use of TLabel. This will be necessary to draw rotated text later.
  • Added: Length of header title is now reduced to not overlap to header buttons area.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Managers/UCDManagerTabs.pas

    r216 r217  
    254254      NewItem.IconImage.Picture.Assign((Control as TForm).Icon);
    255255
    256     NewItem.Control := Control;
     256    NewItem.Control := TWinControl(Control);
    257257    Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange);
    258258    //AControl.Parent := NewItem.ClientAreaPanel;
     
    272272  if Assigned(ManagerItem) then begin
    273273    Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange);
    274   end else raise Exception.Create(Format('Control %s not found in DockItems', [Control.Name]));
     274  end; //else raise Exception.Create(Format('Control %s not found in DockItems', [Control.Name]));
    275275
    276276  DockItems.Remove(ManagerItem);
Note: See TracChangeset for help on using the changeset viewer.