CheckState Method |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration function CheckState(Which: Integer): WordBool; Description Checks several states:
WPSTAT_ISSELECTED = 0; Return true if currently text is selected.
WPSTAT_INTABLE = 1; Return true if the cursor is currently inside a table.
WPSTAT_ISEMPTY = 2; Return true if the text is empty.
WPSTAT_ISFIRSTLINE = 3; Return true if the cursor is in the first line of the text.
WPSTAT_ISLASTLINE = 4; Return true if the cursor is in the last line of the text.
WPSTAT_CANUNDO = 5; Return true if UNDO is possible.
WPSTAT_CANREDU = 6; Return true if REDO is possible.
WPSTAT_CANEDIT = 7; Return true if the text is editable. This also triggers the PropRequestEdit event.
WPSTAT_MODIFIED = 8; Return true if the text was modified.
WPSTAT_CLEARMODIFIED = 9; Return true if the text was modified and clears this flag.
WPSTAT_CHANGEAPPLIED = 10; Return true if the text was modified and triggers the PropChanged event to make sure programmatic changes in the text are saved. In a data bound editor this can cause a reload of the text - so please call this method at first chance before any code which updates the text.
WPSTAT_ISSELECTEDINTABLE = 11; Return true if currently table cells are selected.
WPSTAT_UpdateUndoState = 12; Triggers the OnUpdateGUI event to report a change in the undo stack.
WPSTAT_DoUpdateCharAttr=13; Triggers the OnUpdateGUI event to report a change of the character attributes.
WPSTAT_DoUpdateParAttr=14; Triggers the OnUpdateGUI event to report a change of the paragraph attributes.
|