IupGetCallback

Definition: include pGUI.e

atom func = IupGetCallback(Ihandle ih, string name)
Description: Returns the callback associated to an event.

ih: identifier of the interface element.
name: name of the callback.

Returns: the callback or NULL if there is none.
Notes: This function replaces the deprecated combination:
IupGetFunction(IupGetAttribute(ih, name))

IupGetCallback also returns the correct callback if an event was associated using IupSetFunction and IupSetAttribute, so old applications work normally.
(Note that IupGetFunction has been renamed/wrapped as IupGetGlobalFunction() in pGUI, hence the red/invalid colour.)
See Also: IupSetCallback, IupGetGlobalFunction