Updating the Project File

If you use any of the options and commands described in this chapter, you must update the [OPTIONS] and [CONFIG] sections of the project file, as shown in the following example:

[OPTIONS]
CONTENTS=usa_main
BMROOT=.\dibs
REPORT=ON
ERRORLOG=USA.LOG
WARNING=3

[WINDOWS]
main=, (0,0,1023,1023), , , (192,192,192)
inform="Information", (0,0,511,511), 0, ,(192,192,192)
bird="State Bird", (0,0,600,1023), 0, ,(192,192,192)

; Secondary window type used with ChangeButtonBinding
; example in [CONFIG] section
contents="USA Contents", (0, 0, 894, 787), 0, ,

[CONFIG]
RegisterRoutine("ftui","InitRoutines","SU")
InitRoutines(qchPath,1)
RegisterRoutine("ftui","ExecFullTextSearch","USSS")
RegisterRoutine("ftui","SwitchToTopicsFound","U")
RegisterRoutine("mvbmp","HDisplayBmp","USSS")
RegisterRoutine("mvbmp","CopyBmp","v=USS")
RegisterRoutine("mvaudio","HAudioCommand","USSS")
RegisterRoutine("mvauddlg","HAudioDialog","USSS")
RegisterRoutine("mvaff","HAnimateCommand","USSSS")
AddAccelerator(0x46, 2, "SwitchToTopicsFound(hwndApp)")
CreateButton("ftSearch","&Search","ExecFullTextSearch(hwndApp,qchPath,`',`')")
BrowseButtons()

; Viewer commands to illustrate commands that add buttons, add
; menu items, and change the actions of standard Viewer
; buttons.
;
CreateButton("time_btn", "&Time", "ExecProgram(`alarmclk', 0)")
InsertMenu("menu_util", "Utilities", 3)
AppendItem("menu_util", "time_item", "&Time", ExecProgram(`alarmclk', 0)")
ChangeButtonBinding("btn_contents", "JumpId(`usa.mvb', `usa_main>contents')")