OptionEvent

Register the method to be executed when FJ calls OptionEvent event.
Add the OptionEvent event as follows:

1.Add the OptionEvent control
Select the OptionEvent control from the toolbox and then Drag & Drop it to a position on the Form.


2.Set the properties
Display the Property window for the measurement process control added and set the following properties.

userForm : A form object to receive events from CoreRA. In most cases set the PanDA Form where the control is added.


3.Add the event handler
Double-click the OptionEvent control added or click the event button to display the event for the object. And then double-click the [OptionEvent] field to add the event handler.
Describe the process to be executed when OptionEvent is called in the added event handler.
In the added event handler, some arguments is included as follows.


Table: Argument
Item
Meaning
Description
eventNo
event No
FJ executes the process which is determined by eventNo and parameter
parameter
parameter
IMPORTANT
When an application executes refFZ_FormBase.RaiseOptionEvent(), FJ calls OptionEvent event.
When an application wants to change layout No., set eventNo to 0, parameter to the layout No. which it wants to display.