Ignore:
Timestamp:
Nov 19, 2012, 2:34:58 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Better switching tabbed controls.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDManager.pas

    r430 r437  
    104104    procedure SetMoveDuration(const AValue: Integer);
    105105    procedure CloseHandler(Sender: TObject; var CloseAction: TCloseAction);
     106  protected
     107    procedure InsertControlPanel(Control: TControl; InsertAt: TAlign;
     108      DropCtl: TControl); virtual;
     109    function GetHeaderPos: THeaderPos; virtual;
     110    function FindControlInPanels(Control: TControl): TCDManagerItem; virtual;
    106111  public
    107112    Locked: Boolean;
     
    114119    procedure Switch(Index: Integer); virtual;
    115120    procedure ChangeVisible(Control: TWinControl; Visible: Boolean); virtual;
    116     procedure Assign(Source: TCDManager); virtual;
    117     procedure InsertControlPanel(Control: TControl; InsertAt: TAlign;
    118       DropCtl: TControl); virtual;
    119     function GetHeaderPos: THeaderPos; virtual;
     121    procedure Assign(Source: TPersistent); override;
    120122    procedure BringToFront; virtual;
    121123
     
    141143    function AutoFreeByControl: Boolean; override;
    142144
    143     function FindControlInPanels(Control: TControl): TCDManagerItem; virtual;
    144145    function CreateConjoinForm: TCDConjoinForm;
    145146    function CreateDockableForm: TCDPanelForm;
     
    364365function TCDManager.GetMoveDuration: Integer;
    365366begin
    366 
     367  Result := 0;
    367368end;
    368369
     
    379380
    380381constructor TCDManager.Create(ADockSite: TWinControl);
    381 var
    382   NewMenuItem: TMenuItem;
    383   NewMenuItem2: TMenuItem;
    384382begin
    385383  inherited Create(ADockSite);
     
    524522
    525523procedure TCDManager.ResetBounds(Force: Boolean);
    526 var
    527   I: Integer;
    528   Control: TControl;
    529   R: TRect;
    530524begin
    531525end;
     
    552546  NewConjoinDockForm := TCDConjoinForm.Create(Application);
    553547  NewConjoinDockForm.Name := GetUniqueName('ConjoinForm');
    554   NewConjoinDockForm.Visible := True;
     548  NewConjoinDockForm.Visible := False;
    555549  NewConjoinDockForm.BoundsRect := FDockSite.BoundsRect;
    556550  NewConjoinDockForm.CoolDockClient.Master := Self.Master;
     
    580574procedure TCDManager.SetDockStyle(const AValue: TCDStyleType);
    581575var
    582   I: Integer;
    583576  NewManager: TCDManager;
    584577begin
     
    646639end;
    647640
    648 procedure TCDManager.Assign(Source: TCDManager);
    649 begin
    650   FDockStyle := Source.FDockStyle;
    651   FDockSite := Source.FDockSite;
     641procedure TCDManager.Assign(Source: TPersistent);
     642begin
     643  if Source is TCDManager then begin
     644    FDockStyle := TCDManager(Source).FDockStyle;
     645    FDockSite := TCDManager(Source).FDockSite;
     646  end else inherited;
    652647end;
    653648
     
    718713  Points: array of TPoint;
    719714  TitleLeft: Integer;
    720   TitleWidth: Integer;
    721715  TitleMaxWidth: Integer;
    722716  I: Integer;
Note: See TracChangeset for help on using the changeset viewer.