# GCC_New

int 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 | integer | The id of the panel that is hosting the graph control.
graphControl | integer | 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 | integer | The distance in pixels between the graph and the graph cursor control.
position | integer | The position of the graph cursor control relative to the graph.
numberOfRows | integer | The number of rows to display in the graph cursor control.

## Return Value

Name | Type | Description
result | integer | 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