ObjCreate creates a new object.
Return Value
handle is the handle of the object, or 0 if the object could not be created.
Parameters
nClass is one of the following values:
| Value | Meaning |
|---|---|
| OBJ_APPLICATION | there is only one of this objects. It will be automatically created when UniPlot is started. |
| OBJ_DOCUMENT | see DocCreate. |
| OBJ_EDITOR | see EdCreate. |
| OBJ_LAYER | see LayerCreate. |
| OBJ_XYDATASET | see XYCreate and TYCreate. |
| OBJ_XYZDATASET | see XYZCreate and XYZCreateFromMatrix. |
| OBJ_TEXT | see TBCreate. |
| OBJ_RECT | see RBCreate. |
| OBJ_ELLIPSE | see EBCreate. |
| OBJ_LINE | see LBCreate. |
| OBJ_LINK | see CBCreate. |
| OBJ_PEN | see PenCreate. |
| OBJ_MARKER | see MarkerCreate. |
| OBJ_FONT | see FontCreate. |
| OBJ_FILE | see fopen. |
| OBJ_CONTAINER | see CnCreate. |
| OBJ_SYNEDITOR | see SynEdCreate. |
The type and number of the data to create the object depend on the type of the object.
Comment
Normally, the function ObjCreate is not called. Instead, a function wrapper is called. Example: Call up the function DocCreate instead of ObjCreate(OBJ_DOCUMENT).
See also
id-148201