setVideoScroll
Top  Previous  Next

setVideoScroll ( integer X, integer Y )

Use this function to scroll the viewable area of the Video window.

Parameters
 
 
X, Y  
 
Positive integers specifying the pixel coordinates of the top left origin of the viewable area of the Video window.  
 
Error flags

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

This set of statements gradually scrolls the Video window in its frame:  
 
showVideo(TRUE)  
setVideoZoom(2)  
For x=0 to 300  
setVideoScroll(x,0)  
Next  
For y=0 to 200  
setVideoScroll(x,y)  
Next  
For z=200 to 0  
setVideoScroll(z,z)  
Next  
 
 
Remark

If the specified coordinates exceed the allowable values for the view origin they will be automatically readjusted to the maximum allowable values.