application.isUndoStackAtSavePoint
Determines whether an undo action can be performed or if the stack is at the last savepoint.
Prototype
bYes = application.isUndoStackAtSavePoint ( hUndoStack )
Description
You cannot undo further than the last savepoint.
Parameters
hUndoStack - undo stack handle
Return values
bYes - true if at savepoint
Sample
local hCurrentUndoStack = application.getUndoStackFromTarget ( hResource ) if ( hCurrentUndoStack ) then gui.setMenuItemStateAt ( hMainMenuFile, gui.getObjectUID ( gui.getComponentFromView ( hView, "mainMenu.file.save" ) ), gui.kMenuItemDisabled, bForceDisabled or application.isUndoStackAtSavePoint ( hCurrentUndoStack ) ) end
Available since ShiVa 2.0