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.

Syntax

Implements IGIS_Viewer.MustSave.

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

Result

Type Description
Boolean

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 ;
2020/05/07 01:10

Page Tools