The GRAPHICS INPUT IS statement is used to specify the graphic input device. See the Getting Started Guide, Chapter 8, "Graphic Input Drivers" for more information. The default graphics input device is the keyboard. The mouse may also be used for graphic input. An example GRAPHICS INPUT IS statement is:
GRAPHICS INPUT IS 702,"HPGL"
To perform graphic input, the following statements are used:
DIGITIZE X,Y,Status$ !Wait for Point
READ LOCATOR X,Y,Status$ !Immediate Return Point
Here, X and Y are the target variables for the graphic position, and Status$ is an optional string that receives information about the state of the GRAPHICS INPUT IS device. The returned coordinates are in the units defined in the current WINDOW or SHOW statement. The Status$ string contains eight bytes with the following information:
A point is digitized and the coordinates of that point are assigned to the variables when the keyboard ENTER or CONTINUE keys, a mouse button, or a digitizer button is pressed.
|