This chapter illustrated the entries required in the [WINDOWS] section of the project file for nonscrolling regions and secondary windows. The project file for the sample application, USA.MVP, is as follows:
[OPTIONS]
CONTENTS=usa_main
BMROOT=.\dibs
[FILES]
natext\states_a.rtf ;Arizona
natext\states_c.rtf ;California
natext\states_h.rtf ;Hawaii
natext\states_k.rtf ;Kentucky
natext\states_m.rtf ;Massachusetts
natext\states_n.rtf ;New York, North Dakota
natext\states_t.rtf ;Texas
natext\states_v.rtf ;Virginia
natext\states_w.rtf ;Washington
.
.
.
[OPTIONS]
CONTENTS=usa_main
BMROOT=.\dibs
[WINDOWS]
; colors for nonscrolling region (main Viewer window)
main="USA Tour", (0,0,1023,1023), , , (192,192,192)
; attributes for secondary-window types
inform="Information", (0,0,511,511), 0, ,(192,192,192)
bird="State Bird", (0,0,600,1023), 0, ,(192,192,192)
[CONFIG]
RegisterRoutine("mvaudio", "HAudioCommand", "USSS") ; audio hot spot
RegisterRoutine("mvaff", "HAnimateCommand", "USSSS") ; extended animation window
RegisterRoutine("ftui", "InitRoutines", "SU")
InitRoutines(qchPath, 1)
RegisterRoutine("ftui","ExecFullTextSearch","USSS")
CreateButton("ftSearch","&Search",
"ExecFullTextSearch(hwndApp,qchPath,`',`')")
BrowseButtons()
Remember that the [OPTIONS] section must be the first section of the project file.