LabWindows/CVI

GCC_New

GraphCursorCtrlHandle GCC_New (int panel, int graphControl, int gap, int position, int numberOfRows);

Purpose

This function creates a new graph cursor control.

Parameters

Input
Name Type Description
panel int The id of the panel that is hosting the graph control.
graphControl int The defined constant, located in the .uir header file, that you assigned to the graph control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.

The graph cursor control is associated with this graph control.
gap int The distance in pixels between the graph and the graph cursor control.
position int The position of the graph cursor control relative to the graph.
numberOfRows int The number of rows to display in the graph cursor control.

Return Value

Name Type Description
result GraphCursorCtrlHandle Returns a handle you can use to specify the graph cursor control in subsequent function calls. Negative values indicate that an error occurred. Zero is not a valid handle.
If the return value is    It specifies
› 0 a handle to the graph cursor control
‹ 0 a user interface error code as described in userint.h

Additional Information

Library: Graph Cursor Control

Include file: custctrl\graphcursors.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later

Example

Refer to userint\custctrl\graphcursors\graphcursorctrl.cws for an example of using the GCC_New function.