OGLDiscardCtrl
int OGLDiscardCtrl (int panelHandle, int OGLControlId);
Purpose
Removes an OGL control from the specified panel and from memory.
OGLDiscardCtrl also deletes any plots that are present on this control.
Parameters
Input | ||
Name | Type | Description |
panelHandle | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
OGLControlId | int | The ID returned by OGLNewCtrl or OGLConvertCtrl. |
Return Value
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred.Error Codes
|
Additional Information
Library: OpenGL 3D Plotting Control
Include file: custctrl\cviogl.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later
Examples
Refer to the following examples that use the OGLDiscardCtrl function: