 |
Index for Section 3 |
|
 |
Alphabetical listing for D |
|
DtEditorCheckForUnsavedChanges(3)
CDE
NAME
DtEditorCheckForUnsavedChanges - report whether text has been edited
SYNOPSIS
#include <Dt/Editor.h>
Boolean DtEditorCheckForUnsavedChanges(Widget widget);
DESCRIPTION
The DtEditorCheckForUnsavedChanges function reports whether the text
contained in the edit window of a DtEditor widget has been modified since
the last call to DtEditorGetContents3 or DtEditorSaveContentsToFile3,
including inserting, deleting or moving text with the keyboard or mouse.
For information about retrieving the text without affecting whether
DtEditorCheckForUnsavedChanges reports that all changes have been saved,
see DtEditorGetContents3 and DtEditorSaveContentsToFile3.
The widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget and its associated
resources, see DtEditor3.
RETURN VALUE
Upon successful completion, the DtEditorCheckForUnsavedChanges function
returns True if changes have been made to the contents of the DtEditor
widget since the last call to DtEditorGetContents3 or
DtEditorSaveContentsToFile3; otherwise, it returns False.
SEE ALSO
Dt/Editor.h5, DtEditor3, DtEditorGetContents3, DtEditorSaveContentsToFile3.