[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
INITIALIZE STRING 3 (PHOP,WSOP,*,*)
Purpose
Use
Initialize String 3
to initialize the specified string input device.
The Initialize String 3 subroutine stores the initial string,
prompt/echo type, echo volume, and string data record in
the workstation state list for the specified device.
The graPHIGS API uses the string device's
input character set to
interpret the initial string and prompt strings.
For all prompt and echo types, the first entry of the string
data record is the input buffer size, which is an integer in
the range (1..n).
The graPHIGS API compares this against the
available input buffer size for the specified string device.
If the requested buffer size is greater, then the graPHIGS API
records the available size
in the workstation state list instead of the specified
input buffer size.
If the initial string is longer than the
buffer size, then the graPHIGS API issues an error.
When the graPHIGS API receives string input, it obtains a buffer
of the size defined by the input buffer size.
The graPHIGS API copies the initial string into the buffer,
and places the cursor at the initial editing position within the buffer.
Replacement of characters begins at this initial position.
This function supports the following prompt/echo types:
Type One displays the current string value within the echo area
using a workstation-dependent technique.
Note:
The string device must be in Request mode.
Language Bindings
C
pinit_string3
(ws_id, string_num, init_string,
pet, echo_vol, string_data) |
Pint ws_idWorkstation identifier.
Pint string_numString device number (>=1).
const char *init_stringInitial string.
Pint petPrompt and echo type.
const Plimit3 *echo_volEcho volume in DC.
const Pstring_data3 *string_dataData record.
FORTRAN
PINST3
(wkid, stdnr, lstr,
istr,
pet,
evol,
ldr, datrec) |
integer wkidWorkstation identifier.
integer stdnrString device number (>=1).
integer lstrLength of the initial string (>=0).
The number of characters actually used is the
minimum of lstr and the length of
istr.
character*(*) istrInitial string.
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 used to build the
string input data record are as follows:
(IL=2, IA=input buffer size, initial editing
position, RL=0, RA=(), SL=0,
LSTR=(), STR=()).
FORTRAN Subset
PINST3
(wkid, stdnr, lstr,
istr,
pet, evol,
ldr, datrec) |
integer wkidWorkstation identifier.
integer stdnrString device number (>=1).
integer lstrLength of the initial string.
character*80 istrInitial string.
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 used to build the
string input data record are as follows:
(IL=2, IA=input buffer size, initial editing
position, 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
- 263
- Length Of Initial String > Buffer Size
Related Subroutines
Inquire String Device State 3
Inquire Default String Device Data 3
Inquire Display Space Size
Inquire Number Of Available Logical Input Devices
Pack Data Record
Set String Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]