Example TOPMENU in custform.per
The example shows a TOPMENU section in the form specification file
(custform.per).
Form custform.per:
1 TOPMENU
2 GROUP form (TEXT="Form")
3 COMMAND quit (TEXT="Quit", COMMENT="Exit the program", IMAGE="exit")
4 END
5 GROUP customers (TEXT="Customers")
6 COMMAND query (TEXT="Find",IMAGE="find")
7 SEPARATOR
8 COMMAND next
9 COMMAND previous
10 END
11 ENDNote:
- Lines
1to11: This exampleTOPMENUwill consist of two groups on the menu bar of the form. TheTEXTdisplayed on the menu bar for the first group will be Form, and the second group will be Customers. - Line
6to9: Under the menu bar item Customers, the action-identifier query on line6will be bound to theON ACTION queryclause in the program code. The other topmenu options are similarly bound by action name.
The revised form specification file must be recompiled before it can be used in the
program:
fglform -M custform.per