All Cadcorp SIS API Methods

RegisterTrigger Method

Description

Registers a trigger.

Syntax

Visual Basic
Public Function RegisterTrigger( _
   ByVal triggerEvent As String, _
   ByVal caption As String _
) As String

Parameters

triggerEvent

The event that triggers the button press.

caption

The caption of the button to be pressed.

Remarks

Note: Every command in the system has a trigger which can be monitored by Visual Basic. One-shot commands have Succeeded or Failed triggers. Callback commands have- Snap, Keyback, KeyEnter, KeyTab and End triggers. These triggers can be used to set off an event. Once the trigger is used, you can unregister it by giving it the caption ""

Available: D MD

Groups:

Example

sis.RegisterTrigger ("AComLineEx::KeyEnter", "DrawLineEnter")

Pushes the button on the startup form with the caption DrawLineEnter when an AComLineEx::KeyEnter event occurs.