[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
INITIALIZE CHOICE 3 (PHOP,WSOP,*,*)
Purpose
Use
Initialize Choice 3
to specify initial values for a specified choice
device.
The Initialize Choice 3 subroutine stores the initial choice
number, prompt/echo type, echo volume, 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.
This function supports the following prompt/echo types:
Type One designates the current choice number using a
workstation-dependent technique.
Type Two lets you indicate choice numbers by invoking the
prompting capability.
The physical input devices that are most commonly
used normally have a built-in prompting capability,
such as lighted program function keys (LPFKs).
If the value of the ith
element of the "prompt
array" in the choice data record is OFF,
then the graPHIGS API turns off
prompting of the ith
alternative of the specified
choice input device.
If the value of the ith
element of the "prompt
array" in the choice data record is ON,
then the graPHIGS API turns on
prompting of the ith
alternative of the specified
choice input device.
The first entry in the choice data record is the list of
choice prompts.
Note:
The choice device must be in Request mode.
Language Bindings
C
pinit_choice3
(ws_id, choice_num, init_status,
init_choice, pet, echo_vol, choice_data) |
Pint ws_idWorkstation identifier.
Pint choice_numChoice device number (>=1).
Pin_status init_statusInitial choice status
(1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint init_choiceInitial choice device number (>=1).
Pint petPrompt and echo type.
const Plimit3 *echo_volEcho volume in DC.
const Pchoice_data3 *choice_dataData record.
FORTRAN
PINCH3
(wkid, chdnr, istat,
ichnr, pet, evol,
ldr, datrec) |
integer wkidWorkstation identifier.
integer chdnrChoice device number (>=1).
integer istatInitial choice status
(1=POK, 2=PNCHOI).
integer ichnrInitial choice device number (>=1).
integer petPrompt and echo type.
real evol(6)Echo volume in DC
(XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldrDimension of the data record array.
character*80 datrec(ldr)Data record.
The PPREC parameters to build a
choice input data record for
PET=2 are as follows:
(IL=number of choice alternatives,
IA=list of prompts (0=POFF, 1=PON),
RL=0, RA=(), SL=0,
LSTR=(), STR=()).
Errors
- 3
- Function Requires State (PHOP,WSOP,*,*)
- 54
- Specified Workstation Is Not Open
- 61
- Specified Workstation Is Not Of Category Input Or Outin
- 250
- Specified Device Not Available On Workstation
- 251
- Function Requires Input Device To Be In Request Mode
- 254
- Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
- 255
- Echo Area/Volume Boundary Point(s) Outside Device Range
- 253
- Prompt/Echo Type Not Available On Specified Workstation
- 260
- Input Device Data Record Field Is In Error
- 261
- Initial Value Is Invalid
Related Subroutines
Inquire Choice Device State 3
Inquire Default Choice Device Data 3
Inquire Display Space Size 3
Inquire Number Of Available Logical Input Devices
Pack Data Record
Set Choice Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]