Ignore:
Timestamp:
Mar 22, 2011, 9:49:17 AM (14 years ago)
Author:
george
Message:
  • Added: ConjoinForms caption update.
  • Fixed: Docking new clients to TCDManagerRegions in different direction create new sub conjoin form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDConjoinForm.pas

    r194 r216  
    1414  public
    1515    CoolDockClient: TCDClientBase;
     16    procedure UpdateCaption;
    1617    procedure FormShow(Sender : TObject);
    1718    procedure FormHide(Sender : TObject);
     
    2930
    3031{ TCDConjoinForm }
     32
     33procedure TCDConjoinForm.UpdateCaption;
     34var
     35  NewCaption: string;
     36  I: Integer;
     37begin
     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 + ', ';
     43  end;
     44  Caption := Copy(NewCaption, 1, Length(NewCaption) - 2);
     45
     46  if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then
     47    TCDConjoinForm(HostDockSite).UpdateCaption;
     48end;
    3149
    3250procedure TCDConjoinForm.FormShow(Sender: TObject);
Note: See TracChangeset for help on using the changeset viewer.