Creating Browse and Search Buttons

You must enter commands in the project file to create Browse (<< >>) and Search buttons for Viewer. Again, these commands go in a new section. This section has the following heading:

[CONFIG]

To create the Browse and Search buttons, you must type the following commands exactly as shown (you might find it easier to copy them from the USA.MVP file, the project file for the USA Tour sample title provided with Viewer):

[CONFIG]
RegisterRoutine("ftui","InitRoutines","SU")
InitRoutines(qchPath,1)

RegisterRoutine("ftui","ExecFullTextSearch","USSS")
CreateButton("ftSearch","&Search",
            "ExecFullTextSearch(hwndApp,qchPath,`',`')")

BrowseButtons()

Note:

You don't need to fully understand commands right now, except to know that the first two lines perform required internal tasks, second two lines create the Search button, and the BrowseButtons line creates the Browse buttons for Viewer.

To keep this example simple, some of the information you need to make these buttons work has been omitted, so they'll appear dimmed on the Viewer window when you build the title. Also, About is the only command on the Viewer Help menu.