The format of a UIPACK Definition File may best be shown through use of the following example:-
! Description:-
! =============
! This is an example UIPACK Definition File.
!
! Define Group Number for all subsequent Verbs,
! Qualifiers and Menus.
Group 1 ! This is a Comment
Help HelpFile ! Define Help File for this Group
! Define Verbs within this Group.
!
! BEGIN has two Qualifiers, RUNS and EVENTS, both of
! which accept Integer Lists of Values.
! PRINT also has several qualifiers, COPIES (which takes
! an Integer value), FONT (which takes a text value) and
! QUEUE (which takes a text value). QUEUE is only
! associated with the Verb, whereas COPIES and FONT may
! also be associated with the Parameter.
Verb BEGIN/RUNS=IntList/EVENTS=IntList
Verb PRINT/Copies=Integer/Font=Text/Queue=Text
Parameter FILENAME/Copies=Integer/Font=Text
! Define a Menu to which subsequent Buttons will be
! attached. The Title of the Menu is "Sample Menu"
! (which is in quotes to retain the case - mixed upper
! and lower - and because it includes an embedded space).
! The Menu Prompt is "silly:" which will be converted
! into upper case.
Menu 1/Title="Sample Menu"/Prompt=silly:
! Define Buttons for current Menu
! Note that this Menu is assumed to be used as an
! Action Menu since responses are defined, and that
! Button 3 is therefore a Comment Button since it
! has no Response Text.
Button 1/Description="Begin Data-taking Run" -
/Response=Begin
Button 3/Description="Comment Button"
Button 4/Description="Print (using defaults)" -
/Response=PRINT
Button 5/Description="Print (LONDON Font)" -
/Response="PRINT/FONT=LONDON"
! Define Viewport Parameters for a Viewport
Viewport /TEXT -
/XLow=1/XHigh=80/YLow=1/YHigh=10
Modify Menu/YHigh=15
Endfile ! Terminate scan of file
Anything here will be ignored
--------------- END OF EXAMPLE -------------------
Notes:
@Filename
is taken as referring to Filename.UID, while the command
@
is taken as referring to UIPACK.UID by default.