Ignore:
Timestamp:
Mar 16, 2011, 7:47:27 AM (14 years ago)
Author:
george
Message:
  • Modified: Docked client header redone to delphi visual style.
File:
1 edited

Legend:

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

    r195 r197  
    5757  PanelHeader := TCDPanelHeader.Create(nil);
    5858  PanelHeader.Header.ManagerItem := Self;
     59  PanelHeader.Header.OnMouseDown := DockPanelMouseDown;
     60  PanelHeader.Header.Title.OnMouseDown := DockPanelMouseDown;
    5961
    6062  Splitter := TSplitter.Create(nil);
    6163  with Splitter do begin
     64    Width := 3;
     65    Height := 3;
    6266    //Parent := Panel;
    6367    //Color := clRed;
     
    6771destructor TCDManagerRegionsItem.Destroy;
    6872begin
     73  PanelHeader.Parent := nil;
     74  PanelHeader.Free;
     75  Splitter.Parent := nil;
     76  Splitter.Free;
     77  Control.Parent := nil;
    6978  inherited Destroy;
    7079end;
     
    111120    NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon);
    112121    NewItem.PanelHeader.Parent := DockSite;
     122    NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption;
    113123
    114124    NewItem.Control := Control;
     
    163173begin
    164174  ManagerItem := FindControlInPanels(Control);
    165   if Assigned(ManagerItem) then
     175  if Assigned(ManagerItem) then begin
    166176    Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange);
     177  end;
    167178
    168179  DockItems.Remove(ManagerItem);
Note: See TracChangeset for help on using the changeset viewer.