Ignore:
Timestamp:
Mar 16, 2011, 7:47:27 AM (14 years ago)
Author:
george
Message:
  • Modified: Docked client header redone to delphi visual style.
Location:
Docking/CoolDocking/Managers
Files:
2 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);
  • Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas

    r194 r197  
    4848  TCDStylePopupTabs = class(TCDManagerTabs)
    4949  public
    50     TabControl: TTabControl;
    51     TabImageList: TImageList;
    5250    AutoHideEnabled: Boolean;
    5351    AutoHide: TCDAutoHide;
    54     procedure TabControlMouseLeave(Sender: TObject);
    55     procedure TabControlChange(Sender: TObject);
    56     procedure TabControlMouseDown(Sender: TObject; Button: TMouseButton;
    57       Shift: TShiftState; X, Y: Integer);
    58     procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton;
    59       Shift: TShiftState; X, Y: Integer);
     52    PopupPanel: TPanel;
    6053    constructor Create(ADockSite: TWinControl);
    6154    destructor Destroy; override;
     
    174167{ TCDStylePopupTabs }
    175168
    176 procedure TCDStylePopupTabs.TabControlMouseLeave(Sender: TObject);
    177 begin
    178 
    179 end;
    180 
    181 procedure TCDStylePopupTabs.TabControlChange(Sender: TObject);
    182 begin
    183 
    184 end;
    185 
    186 procedure TCDStylePopupTabs.TabControlMouseDown(Sender: TObject;
    187   Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    188 begin
    189 
    190 end;
    191 
    192 procedure TCDStylePopupTabs.TabControlMouseUp(Sender: TObject;
    193   Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    194 begin
    195 
    196 end;
    197169
    198170constructor TCDStylePopupTabs.Create(ADockSite: TWinControl);
     
    202174  inherited;
    203175  FDockStyle := dsPopupTabs;
    204 
    205176  AutoHide := TCDAutoHide.Create;
     177  PopupPanel := TPanel.Create(nil);
    206178end;
    207179
     
    209181begin
    210182  AutoHide.Free;
     183  PopupPanel.Free;
    211184  inherited Destroy;
    212185end;
Note: See TracChangeset for help on using the changeset viewer.