In the script file, a procedure to handle events is defined as follows:
DEFPROCOn<EventName>
<Statements>
ENDPROC
where <EventName> is one of the six event names (e.g. DEFPROCOnLoad)
and <Statements> is zero or more of any of the following:
CLOSE(ScreenName$)
Closes the given screen.
- ScreenName$ is the name of the screen to close. Can be "THIS" to close the
screen containing the frame which is processing the current event.
DBOXSETVARIABLE(Title$,Prompt$,HelpMessage$,Minimum,Maximum,VariableName)
Displays a dialog box enabling the user to set the value of a variable.
- Title$ is a string which appears as the caption of the dialog box.
Prompt$ is a string which asks the user to enter an appropriate value (e.g.
"Enter an angle").
- HelpMessage$ is a string which provides more information (e.g. "Enter a
negative number to rotate objects clockwise").
- Minimum is a number which is the minimum permitted value for the variable
to be set and is ignored if the variable to be set is a string.
- Maximum is a number which is the maximum permitted value for the variable
to be set and is ignored if the variable to be set is a string.
- VariableName is the name of the variable to be set (e.g. Total, or Count%,
or Name$)
FRAMECHANGEOWNER(FrameName$)
Changes the owner of the given frame.
- When FrameName$ is "THIS" the frame processing the event is removed from
its screen and becomes 'owned' by the pointer (i.e. moving the pointer drags
this frame with it).
When FrameName$ is "POINTER" the frame being dragged is added to the screen
which contains the frame processing the current event.
- No other values are currently allowed.
FRAMECHANGETYPE(FrameName$,NewType$)
Changes the frame type of the given frame.
FRAMECOPY
A copy of the frame processing the current event is made and attached to
the pointer.
FRAMEDELETE(FrameName$)
Deletes the given frame.
- When FrameName$ is "THIS", the frame processing the current event is
deleted. In this case, no further processing of this event will be done.
- When FrameName$ is "POINTER" the frame being dragged by the pointer will be
deleted.
- No other values are currently allowed.
GOHOME
Closes all open My World windows (unless the Home page is in the same book) and opens the 'Home' screen.
- The 'home' screen is either the last screen opened by the File->Open menu command (or
by double-clicking on a .myw file), or, if further screens have been opened
by a link, any screen referred to by a call to SETHOME.
Menu Previous Next Contents