GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Reading coordinates from the screen

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



GETC reads the coordinates directly from the screen and into a command. Use GETC as a subcommand anywhere you need a coordinate pair, and where the automatic prompt for coordinates is what you need. Look at the following examples:


          box getc 50mm 40mm, dr red
          line getc 50.25 30 g

In the first example, you want a box of a specific size. In the second example, you want a line to pass through a specific point which could be difficult to pinpoint on the screen. The second example includes two GETC subcommands, the second showing that you can abbreviate GETC to G.

GETC prompts you to move the cursor to a point and press Enter. If you have a graphics cursor (a mouse, puck, or stylus), GETC enables it. GETC reads the coordinates in the OPS coordinate system, by default rounds off to the nearest integer, puts a green cross at the point, and inserts the two coordinate numbers in the command field. The result of this on the two commands shown above could be:


          box 32 25 50mm 40mm, dr red
          line 32 25 50.25 30 getc

Then the processing of the command continues.

If you have only the alphanumeric cursor, subsequent GETC commands prompt in the same way. After the second point has been established, a dotted green line is drawn between already established points to show the result. You'd see this if you continued processing the second example above, executing the second GETC.

The green crosses and dotted lines are temporary graphics. They are not a part of the picture (they will not be saved if you GDFSAVE the picture), and will disappear when you next update the screen.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012