GRAPH.IsWindow |
nStatus = GRAPH.IsWindow( BYVAL nControl AS INTEGER, [BYVAL rWait AS REAL=0] ) AS INTEGER
Returns the status of the window containing the control. If the rWait parameter is supplied and larger than 0, then the current interpreter/program is suspended for rWait seconds.
Currently the return status can be either
0 = Window Closed 1 = Window Open
Example:
DIM nControl AS INTEGER
' Create the Control nControl = GRAPH.Create( "Graph", WS_VISIBLE, 0, 0, 320, 240, NULL, 1 )
' Wait until window has been closed DO IF NOT GRAPH.IsWindow( nControl, 0.1 ) THEN EXIT DO ENDDO
' Need to close down the control as well GRAPH.Close( nControl )
|