Changeset 380 for Common/ULastOpenedList.pas
- Timestamp:
- Jun 28, 2012, 9:13:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/ULastOpenedList.pas
r374 r380 20 20 public 21 21 Items: TStringList; 22 ClickAction: TNotifyEvent;23 22 constructor Create(AOwner: TComponent); override; 24 23 destructor Destroy; override; 25 procedure LoadToMenuItem(MenuItem: TMenuItem );24 procedure LoadToMenuItem(MenuItem: TMenuItem; ClickAction: TNotifyEvent); 26 25 procedure LoadFromRegistry(Root: HKEY; Key: string); 27 26 procedure SaveToRegistry(Root: HKEY; Key: string); 28 27 procedure AddItem(FileName: string); 28 published 29 29 property MaxCount: Integer read FMaxCount write SetMaxCount; 30 30 property OnChange: TNotifyEvent read FOnChange write FOnChange; 31 31 end; 32 32 33 procedure Register; 34 35 33 36 implementation 37 38 procedure Register; 39 begin 40 RegisterComponents('Samples', [TLastOpenedList]); 41 end; 42 34 43 35 44 { TLastOpenedList } … … 62 71 end; 63 72 64 procedure TLastOpenedList.LoadToMenuItem(MenuItem: TMenuItem );73 procedure TLastOpenedList.LoadToMenuItem(MenuItem: TMenuItem; ClickAction: TNotifyEvent); 65 74 var 66 75 NewMenuItem: TMenuItem;
Note:
See TracChangeset
for help on using the changeset viewer.