setGridPos
Top  Previous  Next

setGridPos ( integer X0, integer Y0 [, integer Sx, integer Sy ] )

Use this function to change the size and position of the Global Grid on screen.

Parameters
 
 
X0, Y0  
 
Positive integers specifying the screen coordinates of the top left corner of the Global Grid window.  

Sx, Sy  
 
Optional positive integers specifying the new width and height of the Global Grid window. If these parameters are omitted, the window will maintain its current size.  
 
Error flags

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

This set of statements opens the Global Grid and moves it across the screen:  
 
showGrid(TRUE)  
For J=0 To getWorkHeight()-200 Step 8  
For I=0 To getWorkWidth()-200 Step 8  
wait(50)  
setGridPos(I,J)  
Next  
For I=800-200 To 0 Step -8  
wait(50)  
setGridPos(I,J+4)  
Next  
Next