GRAPH.FrameOffset |
nOffset = GRAPH.FrameOffset( BYVAL nControl AS INTEGER, [BYVAL nOffset AS INTEGER] ) AS INTEGER
Sets the frame offset that is going to be used as first frame when displaying a NG_XT graph. It will return current frame offset.
Note; You need to set the Frame Offset before adding the Elements.
Example:
DIM nOffset AS INTEGER
nGraph = GRAPH.Create( "MyGraph", WS_VISIBLE+WS_CAPTION, 0, 0, 1024, 768 ) GRAPH.Options( nGraph, "c:\ntgraph.xml", NG_Open ) GRAPH.New( nGraph, NG_XT, "My Stupid Array", 60 )
IF GRAPH.Exists( nGraph ) THEN CLS PRINT "GRAPH Created !", ENDIF
GRAPH.FrameOffset( nGraph, 5 )
GRAPH.AddElement( nGraph, "My Array.X", my_array, VIX( 1 ) ) GRAPH.AddElement( nGraph, "My Array.Y", my_array, VIX( 2 ) ) GRAPH.AddElement( nGraph, "My Array.Z", my_array, VIX( 3 ) )
|