GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Simple polyline program GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
The programming example in Figure 61 uses a stroke device of the default type, namely polyline. After reading the stroke input, the program redraws the line created by the end user. Most programs that use stroke input for line drawing need to do this, because the echo line disappears from the screen when the next terminal I/O occurs. This example in redraws the line in red. A second GSREAD sends the redrawn line to the workstation. Before this call is executed, stroke input is disabled, and the ENTER key enabled as a choice device. When the end user presses the ENTER key after the line changes to red, the program ends.
|
Copyright IBM Corporation 1990, 2012 |