showVideo
Top  Previous  Next

showVideo ( [ integer Show =1 ] )

Use this function to show or hide the Video window. Equivalent to selecting Video from the View menu.

Parameters
 
Show  
 
A boolean integer specifying whether to show or hide the Video window. Must be one of the following values:  
 
FALSE=0 – hides the Video window.  
TRUE=1 – shows the Video window.  
Default value: TRUE  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example

The following code displays the Video window, waits until the user captures an image, and hides the Video window:  
 
showVideo()  
Print "Select field of view"  
Input "Press Enter when ready"  
grabIm (1)  
showVideo(FALSE)