Programming with Reflection

image\rwnprg32.gif RaiseControlEvent method

 

Syntax object.RaiseControlEvent intData, StrData

 

Description

This method is only relevant if you are using Reflection as an ActiveX control. RaiseControlEvent provides information to the ActiveX control about actions that occur in a Reflection session. To use this method:

1 Map a Reflection feature (an event, toolbar, keystroke, hotspot, menu, or mouse click) to RaiseControlEvent.

2 Handle the event in the application or web page using the ActiveX control's OnReflectionEvent event.

Click here for more information about using Reflection as an ActiveX control.

Arguments

IntData Argument Type: Integer
Sends a integer value to the ActiveX control. For example, you might use this argument to identify different events by number. The value of this argument is passed to the first argument of the control's OnReflectionEvent event.

StrData Argument Type: String
Optional
Sends string information to the ActiveX control. For example, you might use this argument to pass information describing the action that called the RaiseControlEvent method. The value of this argument is passed to the second argument of the control's OnReflectionEvent event.