2.2.4.16.3 GetGraphPoints::GetCursorPos

Description

Gets the XY coordinates of the cursor during GetPoints process. It is only useful when called from within an event method of a derived class. Optionally returns the row index of the point from the plot source data sheet.

Syntax

BOOL GetCursorPos(double& x, double& y, int* pnIndex=NULL)

Parameters

x
[output] The x-value of the cursor.
y
[output] The y-value of the cursor.
pnIndex
[output] When not NULL it receives the zero-based row index of data from the source data sheet. If 1st parameter of GetGraphPoints::SetFollowData() is false, the returned value will be -1.

Return

Returns TRUE if successful.

Examples

For an example of using this method, please see the Example Section in GetGraphPoints.

Remark

See Also

SetCursorPos, SetFollowData

Header to Include

origin.h