Aide:ObjEvent.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
ObjEvent
###Description###
Handles incoming events from the given Object.
###Syntax###
ObjEvent ( $ObjectVar, "functionprefix" [, "interface name"] )
ObjEvent ( "AutoIt.Error" [, "function name"] )
###Parameters###
@@ParamTable@@
$ObjectVar
A variable containing an Object from which you want to receive events
"functionprefix"
The prefix of the functions you define to handle receiving events.
The prefix is appended by the Objects method name.
"interface name"
[optional] name of an Event interface to use.
Note: It must be a supported as outgoing for the
Object AND it must be of type DISPATCH.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns an object or a function name.
Failure: Returns "" and sets @error to 1.
@@End@@
###Remarks###
The first format is used to receive Events from the given Object.
To receive a specific event, create an AutoIt function name using
the given prefix appended with the event name.
The second format is used for COM Error Handling. If any COM error
occurs, the given function is being called.
If the second parameter is omitted, it will return the name of the
current Error handler function, if present.
See the <a href="../intro/ComRef.htm">Obj/COM Reference</a> for a detailed explanation.
###Related###
ObjGet, IsObj, ObjCreate, GUICtrlCreateObj
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
Texte en Français
Traducteur :
Contributeurs (pour les modifications avant le Wiki) :