Changeset 123 for trunk/Forms/UFormImage.pas
- Timestamp:
- Mar 16, 2022, 11:35:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImage.pas
r103 r123 73 73 procedure TFormImage.ButtonLoadClick(Sender: TObject); 74 74 begin 75 OpenPictureDialog1.FileName := Core.LastPhotoFileName; 75 OpenPictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName); 76 OpenPictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName); 76 77 if OpenPictureDialog1.Execute then begin 77 78 Image.LoadFromFile(OpenPictureDialog1.FileName); … … 87 88 procedure TFormImage.ButtonSaveClick(Sender: TObject); 88 89 begin 89 SavePictureDialog1.FileName := Core.LastPhotoFileName; 90 SavePictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName); 91 SavePictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName); 90 92 if SavePictureDialog1.Execute then begin 91 93 Image.SaveToFile(SavePictureDialog1.FileName);
Note:
See TracChangeset
for help on using the changeset viewer.