ComponentOne True DataControl 8.0
Bookmarks Dialog

The Bookmarks dialog allows the end-user to

This functionality is necessary in many database applications. The built-in Bookmarks dialog means that you have this functionality at your disposal without any manual coding. To enable the Bookmarks functionality, expose the Bookmarks button to the user by setting ButtonBookmark=True (it is False by default), or invoke the dialog from code by calling the PressButton method with the tdbButtonBookmarks argument.

The Bookmarks dialog has a list of bookmarks, an edit area for Bookmark Name and four buttons: Add, Delete, Go To and Cancel.

To bookmark the current row, the end-user must enter a string in the Bookmark Name text box and press the Add button. As the developer, you can make it even easier for end-users by setting the bookmark name in the GetBookmarkName event, so the dialog will appear with the new bookmark’s name already in it. Pressing the Add button closes the dialog. Next time the dialog is invoked, the new bookmark will be added to the list.

To move to a bookmarked row, the end-user selects a bookmark from the list and presses the Go To button.

Any bookmark in the list can be deleted by selecting it from the list and pressing the Delete button.

Refreshing the True DataControl recordset (with the Refresh method, or as a result of repositioning the Master in master-detail relationship, or for another reason) clears the list of available bookmarks.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback