Example: TOOLBAR in custform.per
The toolbar in this example will display buttons for query
,
next
, previous
, and quit
actions.
Form custform.per:
1 TOOLBAR
2 ITEM query (TEXT="Find",IMAGE="find")
3 ITEM previous
4 ITEM next
5 SEPARATOR
6 ITEM quit (TEXT="Quit", COMMENT="Exit the program", IMAGE="exit")
7 END
Note:
- Line
2
: TheITEM
command-identifierquery
will be bound to theMENU
statement actionquery
created by theON ACTION query
trigger. The word"query"
must be identical in both theTOOLBAR ITEM
andON ACTION
clause, and must always be in lowercase. The other action-identifiers are similarly bound. - Line
6
: Decoration attributes such asTEXT
are defined for thequit
item. For actions such asprevious
andnext
have default attributes defined in the action defaults file (FGLDIR/lib/default.4ad)