Changeset 432 for Common/ULastOpenedList.pas
- Timestamp:
- Oct 25, 2012, 2:11:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/ULastOpenedList.pas
r402 r432 18 18 procedure SetMaxCount(AValue: Integer); 19 19 procedure LimitMaxCount; 20 procedure ItemsChange(Sender: TObject); 21 procedure DoChange; 20 22 public 21 23 Items: TStringList; … … 58 60 end; 59 61 62 procedure TLastOpenedList.ItemsChange(Sender: TObject); 63 begin 64 DoChange; 65 end; 66 67 procedure TLastOpenedList.DoChange; 68 begin 69 if Assigned(FOnChange) then 70 FOnChange(Self); 71 end; 72 60 73 constructor TLastOpenedList.Create(AOwner: TComponent); 61 74 begin 62 75 inherited; 63 76 Items := TStringList.Create; 77 Items.OnChange := ItemsChange; 64 78 MaxCount := 10; 65 79 end; … … 134 148 Items.Insert(0, FileName); 135 149 LimitMaxCount; 136 if Assigned(FOnChange) then 137 FOnChange(Self); 150 DoChange; 138 151 end; 139 152
Note:
See TracChangeset
for help on using the changeset viewer.