GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Drawing graphics text GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
There are two GDDM API calls that enable you to do this; GSCHAR and GSCHAP. Drawing a line of graphics text at a specified position, using GSCHAR In "Example: The HOUSE program" in topic 1.4, graphics text was added to the HOUSE example program by means of this call.
/* X-COORD Y-COORD LENGTH STRING */
CALL GSCHAR( 33.0, 2.0, 28, 'All dimensions are in meters');
GSCHAR writes a string of graphics text of a specified length at a
specified position.
As with all graphics calls, the position is given in world coordinates rather than the rows and columns scheme used for alphanumerics. Drawing a line of graphics text at the current position, using GSCHAP The GSCHAP call is similar to GSCHAR, but it draws a graphics text string at the current position rather than at a specified one.
/* length string */
CALL GSCHAP( 28, 'All dimensions are in meters');
This makes it easy to concatenate graphics text strings.
|
Copyright IBM Corporation 1990, 2012 |