Previous Up Next

M3setH3dCB
Attributes to '_object_' a callback having '_id_' as identifier.

I M3setH3dCB (
S3d _session_
H3d _object_
I _id_
fun [S3d H3d Arg3D] Arg3D _callback_
)
Parameters

_session_
3D Session
_object_
3D object to which a callback is to be attributed
_id_
Callback identifier
_callback_
Callback
Return value

0 if successful, otherwise nil
Remark

If a callback having this identifier already exists, it is replaced by the new one.
If the parameter for the callback is set to nil, then the callback is deleted.
See Also

M3getH3dCB and M3execH3dCB