Changeset 153 for trunk/Forms/FormMain.pas
- Timestamp:
- Jun 6, 2023, 9:46:08 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r152 r153 59 59 procedure FormCreate(Sender: TObject); 60 60 procedure FormDestroy(Sender: TObject); 61 procedure FormDropFiles(Sender: TObject; const FileNames: array of string); 61 62 procedure FormResize(Sender: TObject); 62 63 procedure FormShow(Sender: TObject); … … 85 86 resourcestring 86 87 SModified = 'Modified'; 88 SOnlyOneFileCanBeDropped = 'Only one file can be dropped at once.'; 87 89 88 90 { TFormMain } … … 111 113 begin 112 114 FreeAndNil(FormContacts); 115 end; 116 117 procedure TFormMain.FormDropFiles(Sender: TObject; 118 const FileNames: array of string); 119 begin 120 if Length(FileNames) <> 1 then ShowMessage(SOnlyOneFileCanBeDropped) 121 else begin 122 Core.Core.FileOpen(FileNames[0]); 123 Core.Core.UpdateFile; 124 end; 113 125 end; 114 126
Note:
See TracChangeset
for help on using the changeset viewer.