Changeset 218 for Docking/CoolDocking/UCDConjoinForm.pas
- Timestamp:
- Mar 23, 2011, 12:22:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDConjoinForm.pas
r216 r218 14 14 public 15 15 CoolDockClient: TCDClientBase; 16 UpdateCaptionEnable: Boolean; 16 17 procedure UpdateCaption; 17 18 procedure FormShow(Sender : TObject); … … 36 37 I: Integer; 37 38 begin 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; 43 50 end; 44 Caption := Copy(NewCaption, 1, Length(NewCaption) - 2);45 46 if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then47 TCDConjoinForm(HostDockSite).UpdateCaption;48 51 end; 49 52 … … 68 71 OnShow := FormShow; 69 72 OnHide := FormHide; 73 UpdateCaptionEnable := True; 70 74 end; 71 75
Note:
See TracChangeset
for help on using the changeset viewer.