# 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.
pwa/p2js: | Not supported.
Notes: | This function replaces the deprecated combination:
    IupGetFunction(IupGetAttribute(ih, name))
IupGetCallback also returns the correct callback if an event was associated using IupSetGlobalFunction and IupSetAttribute, so old applications work normally. (Note that IupSetFunction has been renamed/wrapped as IupGetGlobalFunction() in pGUI, hence the red/invalid colour.)
See Also: | IupSetCallback, IupGetGlobalFunction