GDDM-GKS V1R1 Programming Guide and Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Creating a new segment

GDDM-GKS V1R1 Programming Guide and Reference
SC33-0334-00



The program creates a new segment according to the returned pick identifier. The new segment contains the piece of furniture that the operator wants to move into the room. The first new segment is given the number 1, and subsequent new segments are named in increments of 1.


          CREATE SEGMENT (segment name)
     output fill area in background color
          FILL AREA (5, xdsk, ydsk)
          POLYLINE (5, xdsk, ydsk)
     make new segment invisible
          SET VISIBILITY (segment name, 0)
          CLOSE SEGMENT

The new segment is created at the origin (0,0) and made invisible so that it cannot appear on the display until it is placed. A pick identifier is assigned to it so that it can be identified later if the operator chooses to remove it from the room.

After the new segment is created, the program branches back to the menu of options.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012