
Table 8-2. Textsw_action Attributes (continued)
Attribute
(TEXTSW_ACTION_ . . . )
Type Description
EDITED_MEMORY (no value) Monitors whether an empty text subwindow has
been edited.
FILE_IS_READONLY char * The file named by the provided string value does
not have write permission.
LOADED_FILE char * The text subwindow is being used to view the
file named by the provided string value.
TOOL_CLOSE
(no value) The frame containing the text subwindow should
become iconic.
TOOL_DESTROY
Event * The tool containing the text subwindow should
exit, without checking for a veto from other
subwindows. The value is the user action that
caused the destroy.
TOOL_QUIT Event * The tool containing the text subwindow should
exit normally. The value is the user action that
caused the exit.
TOOL_MGR Event * The tool containing the text subwindow should
do the window manager operation associated
with the provided event value.
USING_MEMORY (no value) The text subwindow is being used to edit a string
stored in primary memory, not a file.
The attribute TEXTSW_ACTION_EDITED_FILE is a slight misnomer, as it is given to the notify
procedure after the first edit to any text, whether or not it came from a file. This notification
happens only once per session of edits, whereas, on the other hand, notification of
TEXTSW_ACTION_LOADED_FILE is considered to terminate the old session and start a new
one.
NOTE
The attribute TEXTSW_ACTION_LOADED_FILE