Aide:GUICtrlSetOnEvent.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
GUICtrlSetOnEvent
###Description###
Defines a user-defined function to be called when a control is clicked.
###Syntax###
GUICtrlSetOnEvent ( controlID, "function" )
###Parameters###
@@ParamTable@@
controlID
The control identifier (controlID) as returned by a <a href="GUICtrlCreate Management.htm">GUICtrlCreate...</a> function.
function
The name of the user function to call.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns 1.
Failure: Returns 0,
@@End@@
###Remarks###
OnEvent functions are only called when the option GUIOnEventMode is set to 1 - when in this mode GUIGetMsg is NOT used at all.
Within the called user function the control identifier can be retrieved with @GUI_CTRLID.
If needed the windows handle and the control handle can be retrieved with @GUI_WINHANDLE or @GUI_CTRLHANDLE.
If the function is an empty string "" the previous user-defined is disabled.
###Related###
GUICtrlCreate..., GUIGetMsg, GUIOnEventMode (Option), GUISetOnEvent, GUICtrlCreateDummy, GUICtrlSendToDummy
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
Texte en Français
Traducteur :
Contributeurs (pour les modifications avant le Wiki) :