GRAPH.Cursor

Previous  Next

 

nFrame = GRAPH.Cursor( BYVAL nControl AS INTEGER,

                       BYVAL state    AS INTEGER,

                       BYVAL position AS REAL     ) AS INTEGER

 


 

Turns the Cursor on of off and optionally moves it to specified frame or time .  If the state and location arguments are omitted, the state of the cursor is returned as the frame number or -1 if turned off.

 

The position argument type depends on the GRAPH.Time setting.  If set to Time then the argument is time in seconds otherwise it is the frame number starting at 1.

 

Example:

 

' Turn on Cursor but don't move position

GRAPH.Cursor( nControl, ON )

 

, Turn on Cursor and move to 1.23 seconds

GRAPH.Grid( nControl, ON, 1.23 )

 

' Get the state of the Grid

nGrid = GRAPH.Grid( nControl )