showGrid  
Top  Previous  Next

showGrid ( [ integer Show =1 ] )

Use this function to show or hide the Global Grid. Equivalent to selecting Grid from the View menu.

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

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

Example:

The following set of statements captures an image, reports blob measurements in the Global Grid and hides the grid in one second:  
 
SelectParam("Area","Perim","DCircle","DMin","DMax")  
grabim(1)  
threshunimod(1,1,0,1)  
scrap(1,1,50,400,1)  
measobjects(1,1,"")  
wait(1000)  
showGrid(FALSE)