Bookmarks can now be created inside 4D Write Pro documents. But what are bookmarks exactly ? A bookmark is a named reference matching a text selection of a 4D Write Pro document.
Several bookmarks can be present inside a single document. Once bookmarks have been created, they can be retrieved as a list of names, then using one of them allows retrieve the range of the corresponding text.
Of course, bookmarks can also be deleted. And deleting a bookmark does not affect the document in any way.
To manage these bookmarks, 4 new commands have been created in order to handle them by programming:
- WP CREATE BOOKMARK
- WP GET BOOKMARKS
- WP Get bookmark range
- WP DELETE BOOKMARK
The 4D Write Pro widget has also been updated to manage them without any programming.
This panel allows to
- create bookmarks based on text selection
- delete one bookmark selected in the list
- update an existing bookmark (according to a new text selection)
An example illustrating the use of these new commands is available: Example Database.
To get more details about the bookmark concept, please take a look at the Accessing document contents by programming section in the 4D Write Pro v16 reference manual.