OBJSetCallbackFunctionΒΆ
OBJSetCallbackFunction sets a callback function for some events.
- bool = OBJSetCallbackFunction(hObj, ssCallbackType, ssCallbackFunction)
Return Value
Is TRUE (1), if the function was successful and otherwise FALSE (0).
Parameters
- hObj
Identifies the drawing object.
- ssCallbackType
ssCallbackType sets the type of callback function. The following events are supported:
Type (String) |
Description |
---|---|
ObjectDblClickCallBack |
Will be invoked if an object is double clicked (Diagram, Drawing Object)
The function must have one parameter: |
ObjectClickCallback |
Will be invoked if an object is clicked (Diagram, Drawing Object)
The function must have one parameter: |
VideoPos |
Will be invoked if a video is played).
The function must have two parameters: |
VideoMode |
Will be invoked if a video is played.
The function must have two parameters: |
DragEnd |
Will be invoked if an object has been dragged to a new position
(Diagram, Drawing Object). The function must have one parameter:
|
SaveAs |
Will be invoked if an IPW/IPZ document will be saved under a new name.
The function must have one parameter: |
- ssCallbackFunction
ssCallbackFunction is the callback function name.
Comment
An object can only have one callback function specified for each event.
Example
OBJSetCallbackFunction(hCB, "ObjectDblClickCallBack", "OnLabelDataPointConfig");
History
Version |
Description |
---|---|
R2013.3 |
New. |
See also
Overview Drawing Objects, OBJGetCallbackFunction, OBJRemoveCallbackFunction, AppOnCloseCallback
id-40235