Fire Value Change On (ChangeEvent)

Specifies the OCX control event that fires the valueChanged trigger.

"ChangeEvent=EventName"

Value

Description

EventName

Name of an OCX event that causes the valueChanged trigger to be fired.

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

Available OCX events.

Applies to:

uOcxContainer (OcxContainer)

Description

Use this property to map an OCX event to the Uniface valueChanged trigger.

If the specified OCX event occurs, and the widget does not have focus, it first requests focus, and fires the valueChanged trigger when it gets focus.

If you map events to the detail trigger (using Fire Detail Trigger On), it is recommended that you avoid selecting focus-related events and frequent low-level events.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

For example, the Windows Media Player OCX control has an event called NewStream. You can map this event to the valueChanged trigger using the Fire Value Changed On property.

$fieldproperties(FLD) = "ChangeEvent=NewStream"