TerAcceptChanges
Accept modified text.
int TerAcceptChanges(all, msg, repaint)
bool all; | Set to TRUE to accept all changes. Set to false to accept the current change. |
bool msg; | Set to true to display confirmation and completion messages. |
bool repaint; | Repaint the window after this operation |
Description: This function merges the modified text to the document. The 'deleted' text is removed from the document. The 'inserted' text attribute is set to normal.
The tracking mode should be turned off to enable the use of this function.
The ID_ACCEPT_CHANGE and ID_ACCEPT_ALL_CHANGES ids can also be used with the TerCommand function or the Command property to accept modified text.
Return Value: This function returns the number of text strings accepted. It returns -1 to indicate an error condition.