DK11 for Delphi | GisViewer.TGIS_Viewer.MustSave | Constructors | Fields | Methods | Properties | Events
Check if any layer or the project file was modified by editing.
Implements IGIS_Viewer.MustSave.
// Delphi public function MustSave : Boolean;
// C++ Builder public: bool MustSave(void);
Type | Description |
---|---|
Boolean | True if project should be saved. |
procedure MyClass.FormCloseQuery(); begin // exit if nothing changed if not GIS.MustSave then exit ; if Application.MessageBox( 'Save all unsaved work?', 'TatukGIS', MB_YESNO) = IDYES then // write all changes to the file GIS.SaveAll ; end ;