CustomButton

CustomButton triggers a procedure or script when a user clicks a custom button in the Alarm Viewer control.

Field

Description

Event

ActiveX Event provides the CustomButton expression.

ActiveX Event

CustomButton is included in the drop-down list.

Action

Contains a drop-down list of existing procedures and scripts.

Use either of the following.

 

Procedure

Create or use an existing procedure.

 

Script

Create or use an existing script.

Parameter

Can be used if the event invokes a script directly or through a procedure.

The default code begins as follows.

Private cimOleObj As AMVOCXLib.IAmvOcx

Sub OnCustomButton(ButtonNumber As Long, ButtonString As String)

Where parameters are:

 

ButtonNumber

Number assigned to the custom button, e.g. 1 for Custom1.

 

ButtonString

Value returned when a command string is executed.

More information

Example: Create an ActiveX event custom button.

AMV Control ActiveX events.