Ignore:
Timestamp:
Oct 17, 2012, 1:24:58 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: CoolDock show wrong tab focused if tab was invisible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDConjoinForm.pas

    r355 r430  
    1212
    1313  TCDConjoinForm = class(TCDConjoinFormBase)
     14  protected
     15    procedure SetName(const NewName: TComponentName); override;
    1416  public
     17    FreeIfEmpty: Boolean;
    1518    CoolDockClient: TCDClientBase;
    1619    UpdateCaptionEnable: Boolean;
     
    2023    constructor Create(TheOwner: TComponent); override;
    2124    destructor Destroy; override;
    22   private
    23     procedure SetName(const NewName: TComponentName); override;
    2425  end;
    2526
     
    4849    if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then
    4950      TCDConjoinForm(HostDockSite).UpdateCaption;
     51    //if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then
     52      TCDManager(DockManager).Update;
    5053  end;
    5154end;
     
    5760
    5861procedure TCDConjoinForm.FormHide(Sender: TObject);
    59 var
    60   I: Integer;
    6162begin
    6263  TCDManager(DockManager).Visible := False;
     
    6566constructor TCDConjoinForm.Create(TheOwner: TComponent);
    6667begin
    67   inherited CreateNew(TheOwner);
     68  inherited;
    6869  CoolDockClient := TCDClient.Create(Self);
    6970  with TCDClient(CoolDockClient) do begin
     
    7374  OnHide := FormHide;
    7475  UpdateCaptionEnable := True;
     76  FreeIfEmpty := True;
    7577end;
    7678
Note: See TracChangeset for help on using the changeset viewer.