ImageEn, unit iexMetaHelpers |
|
TIEMetaListView.Modified
Declaration
property Modified: Boolean;
Description
Returns true if the user has
edited any fields.
Note:
◼You can use the
OnAfterEditMetaData event to show Modified status
◼ TIEMetaListView does
not reset modified when the control is filled. You should set Modified to False after loading a new image
Default: False
ImageEnView1.IO.LoadFromFile( Filename );
IEMetaList1.Modified := False;
...
if IEMetaList1.Modified then
if MessageDlg( 'Save changes to your meta data?', mtConfirmation, [ mbYes, mbNo ], 0 ) = mrYes then
IEMetaListView1.SaveMetaToFile( Filename );
procedure TMainForm.IEMetaListView1AfterEditMetaData(Sender: TObject);
begin
if IEMetaListView1.Modified then
lblModified.Caption := 'Modified: Yes'
else
lblModified.Caption := 'Modified: No';
end;