Document::AlertChanges
Section: ET++ method description (n)
Updated: automatically Fri Mar 15 14:13:05 1991
Index
Return to Main Contents
NAME
Document::AlertChanges - instance method
TEMPLATE
showAlert = bool
AlertChanges()
SPECIFIERS
public
virtual
DESCRIPTION
AlertChanges is called before the document is closed by the method Close or a new document is loaded by the method Open. Its purpose is to find out whether the document has unsaved changes and therefore to show the "Save changes to .." alert.
If AlertChanges returns TRUE, then the method Close and the method Open display the alert which allows the user to decide whether to save the changes or cancel the operation. If the return value is FALSE the alert is not shown and possible changes are discarded.
Method is rarely overridden.
ARGUMENTS
none
RETURN ARGUMENT
- bool showAlert
-
indicates whether to show an alert about unsaved changes
CATEGORIES
change management, overrider interface
FIRST DEFINITION
class Document
FILES
- implementation:
-
Document.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:28 GMT, March 30, 2022