Ignore:
Timestamp:
Mar 23, 2011, 12:22:26 PM (14 years ago)
Author:
george
Message:
  • Fixed: Parent manager tabs switching.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDConjoinForm.pas

    r216 r218  
    1414  public
    1515    CoolDockClient: TCDClientBase;
     16    UpdateCaptionEnable: Boolean;
    1617    procedure UpdateCaption;
    1718    procedure FormShow(Sender : TObject);
     
    3637  I: Integer;
    3738begin
    38   NewCaption := '';
    39   for I := 0 to DockClientCount - 1 do begin
    40     //if DockClients[I] is TCDConjoinForm then
    41     //  TCDConjoinForm(DockClients[I]).UpdateCaption;
    42     NewCaption := NewCaption + DockClients[I].Caption + ', ';
     39  if UpdateCaptionEnable then begin
     40    NewCaption := '';
     41    for I := 0 to DockClientCount - 1 do begin
     42      //if DockClients[I] is TCDConjoinForm then
     43      //  TCDConjoinForm(DockClients[I]).UpdateCaption;
     44      NewCaption := NewCaption + DockClients[I].Caption + ', ';
     45    end;
     46    Caption := Copy(NewCaption, 1, Length(NewCaption) - 2);
     47
     48    if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then
     49      TCDConjoinForm(HostDockSite).UpdateCaption;
    4350  end;
    44   Caption := Copy(NewCaption, 1, Length(NewCaption) - 2);
    45 
    46   if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then
    47     TCDConjoinForm(HostDockSite).UpdateCaption;
    4851end;
    4952
     
    6871  OnShow := FormShow;
    6972  OnHide := FormHide;
     73  UpdateCaptionEnable := True;
    7074end;
    7175
Note: See TracChangeset for help on using the changeset viewer.