GPINCH (wsid, device, choice, echo, area, datalen, data) |
Purpose
Use GPINCH to specify initial values for a given choice device.
The Initialize Choice subroutine stores the initial choice number, prompt/echo type, echo area, and data record in the workstation state list for the specified device. For a keyboard choice device, an initial choice number less than 256 is interpreted using the workstation's input device character set. For details on the specific devices available on different workstation types, see The graPHIGS Programming Interface: Technical Reference or use the appropriate inquiry subroutines.
Note:
The choice device must be in Request mode.
Parameters
Note:
The data record length parameter must equal zero (datalen=0) if no data record is required for the given prompt/echo type. For prompt/echo types which require a data record, the specified data record length must be greater than, or equal to, 12.
Prompt/echo Types
Physical input devices commonly used as choice logical input devices have a built-in prompting capability. If the value of the i (th) element of the prompt array in the choice data record is 1=OFF , prompting of the i (th) alternative of the specified choice input device is turned off. An value of 2=ON indicates that prompting for that alternative is turned on. Choice echo Type Two requires the following data record:
---------------------------- 0 | n | number of integers |--------------------------| 4 | 0 | number of reals |--------------------------| 8 | 0 | number of strings -------- |--------------------------| | 12 | prompt for choice 1 | | |--------------------------| integers / / | / / | |--------------------------| | n*4+12 | prompt for choice n | -------- ----------------------------
Prompt values are 1=OFF, 2=ON
Error Codes
Related Subroutines
RCP code
201335300 (X'0C002204')