GRAPH.Close

Previous  Next

 

nStatus = GRAPH.Close( BYVAL nControl AS INTEGER,

                      [BYVAL rWaitSeconds AS REAL=0] ) AS INTEGER ) AS INTEGER

 


 

Close a control window..  If rWaitSeconds is set the function will wait for the window to be closed by user interaction for the specified amount of time.  Set the rWaitSeconds to INFINITE to disable timed out close.

 

Note; A Graph window must be closed using the GRAPH.Close statement regardless of if the user closes the window.

 

Example:

 

DIM nControl AS INTEGER

nControl = GRAPH.Create( "Graph", WS_VISIBLE, 0, 0, 320, 240, NULL, 1 )

GRAPH.Close( nControl )