User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.mustsave_void

Table of Contents

TGIS_Viewer.MustSave method

DK11 for Delphi | GisViewer.TGIS_Viewer.MustSave | Constructors | Fields | Methods | Properties | Events

Check if any layer or the project file was modified by editing.

Available also on: .NET | Java | ActiveX | Python.

Syntax

Implements IGIS_Viewer.MustSave.

// Delphi
public
  function MustSave : Boolean;
// C++ Builder
public:
  bool MustSave(void);

Result

Type Description
Boolean True if project should be saved.

Example

Delphi

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 ;
2022/11/30 19:19

Page Tools