Open quozl opened 5 years ago
@quozl I looked through all the functions of Abi.Widget from here, but did not find any methods suitable to store the last edit position. However, would it be a good feature to store the last edited page number in the document and restore the same page on opening the activity again?
Thanks!
Thanks, but no. Save and restore edit point position to the exact letter, not the page,
AbiCollab_Import.cpp
mentions a data type PT_DocPosition
, and functions getEndOfDoc
and getPos
.@quozl Thanks I shall look into the methods you've mentioned above. I wasn't aware of _invoke and invokeex methods of AbiWidget before
At the moment, the edit point is always set to the start of document.
It is common for word processor programs to open a document and position the edit point to the most recent edit point. We might do the same.