window_input_value(_c)
status.i4.v = window_input_value(window_id.i2.r, row.i4.r,
left_column.i4.r, value.g.v,
data_type.i4.r, num_chars.i4.r,
color.i4.r [,minimum.g.v]
[,maximum.g.v] [,fill_char.i1.r]
[,justify.i4.r] [,options.u4.r])
status.i4.v = window_input_value_c(window_id.i2.v, row.i4.v,
left_column.i4.v, value.g.v,
data_type.i4.v, num_chars.i4.v,
color.i4.v [,minimum.g.v]
[,maximum.g.v] [,fill_char.i1.v]
[,justify.i4.v] [,options.u4.v])
This routine reads ASCII characters from a window and converts them
into an equivalent numeric value. If "minimum" and "maximum" are
not NULL and the data type is numeric, "value" will be range checked
and will be redisplayed in ASCII form. If the range check fails,
the initial text will be recolored to white unless the color parameter
is white in which case the text will be recolored in red. Characters
can only be read from the visible portion of a window with this
routine.
window_id window ID (use WMNGR_BACKGROUND for background window)
row row of input field
left_column leftmost column of input field
value returned value (If an invalid value has been entered,
the original value will be returned.)
data_type data type of "value"
(CNV_BYTE -> one byte decimal integer,
CNV_SHORT -> two byte decimal integer,
CNV_LONG -> four byte decimal integer,
CNV_UBYTE -> one byte unsigned decimal integer,
CNV_USHORT -> two byte unsigned decimal integer,
CNV_ULONG -> four byte unsigned decimal integer,
CNV_BYTE_HEX -> one byte hexadecimal integer,
CNV_SHORT_HEX -> two byte hexadecimal integer,
CNV_LONG_HEX -> four byte hexadecimal integer,
CNV_FLOAT -> single precision floating point value,
CNV_EXP -> floating point value in scientific
notation,
CNV_FLOAT_EXP -> single precision floating point value
in either standard or scientific form,
CNV_DOUBLE -> double precision floating point value,
CNV_DOUBLE_EXP -> double precision floating point
value in either standard or
scientific form,
CNV_LOGICAL -> four byte integer containing values
of TRUE or FALSE,
CNV_ENUMERATED -> four byte integer from most recent
call to 'set_enumerated_strings_c',
CNV_ENUMERATED_MENU -> four byte integer from most
recent call to
'set_enumerated_strings_c'
(menu interface),
>= CNV_ENUMERATED_BASE -> four byte integer from a
prior call to
'set_enumerated_strings_c',
CNV_BIT_MASK -> four byte integer from most recent
call to 'set_bit_mask_strings_c',
CNV_BIT_MASK_MENU -> four byte integer from most recent
call to 'set_bit_mask_strings_c'
(menu interface),
>= CNV_BIT_MASK_BASE -> four byte integer from a
prior call to
'set_bit_mask_strings_c',
CNV_NODE -> two byte integer containing an ACNET
node value,
CNV_NODE_MENU -> two byte integer containing an ACNET
node value (menu interface),
CNV_NODE_OPERATIONAL -> two byte integer containing
an operationally significant
ACNET node value,
CNV_NODE_OPERATIONAL_MENU -> two byte integer
containing an
operationally significant
ACNET node value
(menu version),
CNV_NODE_CONSOLE -> two byte integer containing
a console node value,
CNV_NODE_CONSOLE_MENU -> two byte integer containing
a console node value
(menu interface),
CNV_NODE_FRONTEND -> two byte integer containing a
CAMAC front end node value,
CNV_NODE_FRONTEND_MENU -> two byte integer containing a
CAMAC front end node value
(menu interface),
CNV_NODE_MOOC -> two byte integer containing
a MOOC node value,
CNV_NODE_MOOC_MENU -> two byte integer containing
a MOOC node value
(menu interface),
CNV_NODE_IRM -> two byte integer containing
an IRM node value,
CNV_NODE_IRM_MENU -> two byte integer containing
an IRM node value
(menu interface),
CNV_NODE_DAE_FE -> two byte integer containing
a DAE front end node value,
CNV_NODE_DAE_FE_MENU -> two byte integer containing
a DAE front end node value
(menu interface),
CNV_NODE_LCS -> two byte integer containing
an LCS (Local Control System)
front end node value,
CNV_NODE_LCS_MENU -> two byte integer containing
an LCS (Local Control System)
front end node value
(menu interface),
CNV_NODE_FRONTEND_ALL -> two byte integer
containing a front end
node value,
CNV_NODE_FRONTEND_ALL_MENU -> two byte integer
containing a front end
node value
(menu interface),
CNV_NODE_CENTRALVAX -> two byte integer
containing a central VAX
node value,
CNV_NODE_CENTRALVAX_MENU -> two byte integer
containing a central VAX
node value
(menu interface),
CNV_NODE_PSEUDO -> two byte integer containing a
pseudo node value,
CNV_NODE_PSEUDO_MENU -> two byte integer containing a
pseudo node value
(menu interface),
CNV_DEVICE -> four byte integer containing an ACNET
device index,
CNV_DEVICE_MENU -> four byte integer containing an
ACNET device index (menu version),
CNV_LONG_DEVICE -> ARRAY_DEVICE_DATA structure
containing an array device
specification,
CNV_C_STYLE_LONG_DEVICE -> ARRAY_DEVICE_DATA structure
containing an array device
specification,
CNV_C_STYLE_DEVICE_EXT -> ARRAY_DEVICE_DATA_EXT
structure containing an
array device
specification,
CNV_FERMI_NAME -> four byte integer containing an ACNET
device index,
CNV_DEVICE_CLASS -> four byte integer containing a
device class value,
CNV_DEVICE_CLASS_MENU -> four byte integer containing
a device class value
(menu version),
CNV_DEVICE_TYPE -> four byte integer containing a
device type value,
CNV_DEVICE_TYPE_MENU -> four byte integer containing
a device type value
(menu version),
CNV_DBPROP -> two byte integer containing an
ACNET database property,
CNV_DBPROP_MENU -> two byte integer containing an
ACNET database property
(menu interface),
CNV_FTD -> two byte integer containing data
acquisition rate (FTD),
CNV_FTD_MENU -> two byte integer containing data
acquisition rate (FTD)
(menu interface),
CNV_READING_FTD -> two byte integer containing
reading data acquisition rate (FTD),
CNV_READING_FTD_MENU -> two byte integer containing
reading data acquisition rate
(FTD) (menu interface),
CNV_COLOR -> four byte integer containing color value,
CNV_COLOR_MENU -> four byte integer containing
color value (menu interface),
CNV_GRAPHIC_COLOR -> four byte integer containing a
graphic color value,
CNV_GRAPHIC_COLOR_MENU -> four byte integer containing
a graphic color value
(menu interface),
CNV_PAGE -> PAGE_NAME_LEN character string containing
an application index page name,
CNV_WINDOW -> four byte console window value,
CNV_WINDOW_MENU -> four byte console window value
(menu interface),
CNV_TV_WINDOW -> four byte console TV window value,
CNV_TV_WINDOW_MENU -> four byte console TV window value
(menu interface),
CNV_GRAPHIC_WINDOW -> four byte console graphic window
value,
CNV_GRAPHIC_WINDOW_MENU -> four byte console graphic
window value
(menu interface),
CNV_PA_GRAPHIC_WINDOW -> four byte PA graphic window
value,
CNV_PA_GRAPHIC_WINDOW_MENU -> four byte PA graphic
window value
(menu interface),
CNV_ERROR -> ACNET_ERR structure containing ACNET
error code,
CNV_ERROR_MENU -> ACNET_ERR structure containing ACNET
error code (menu interface),
CNV_SHORT_ERROR -> ACNET_ERR structure containing
ACNET error code (short format),
CNV_CLINKS -> four byte TIME in clinks
(format - dd-MMM-yyyy hh:mm:ss),
CNV_CLINKS_DATEONLY -> four byte TIME in clinks
(date only),
CNV_CLINKS_TIMEONLY -> four byte TIME in clinks
(TIME only),
CNV_HHMMSS -> four byte TIME in hh:mm:ss format,
CNV_CTIME -> four byte TIME in seconds since
January 1, 1970
(format - Ddd Mmm dd hh:mm:ss yyyy),
CNV_CTIME_TIMEONLY -> four byte TIME in seconds
(TIME only),
CNV_RAD50 -> four byte radix 50 value,
CNV_USERNAME -> USER_NAME_LEN character string
containing a user name,
CNV_SR_SYSTEM -> four byte integer containing a
Save/Restore system value,
CNV_SR_SYSTEM_MENU -> four byte integer containing a
Save/Restore system value
(menu version),
CNV_SR_FILE -> four byte integer containing a
Save/Restore file number,
CNV_SR_FILE_MENU -> four byte integer containing a
Save/Restore file number
(menu version),
CNV_SAVE_LIST -> four byte integer containing a
Save/Restore list value,
CNV_SAVE_LIST_MENU -> four byte integer containing a
Save/Restore list value
(menu version),
CNV_SSDN -> LEN_SSDN byte SSDN value,
CNV_EMC -> LEN_EMC byte EMC (Event Message Code) value,
CNV_CONSOLE_NUMBER -> four byte integer containing
a console number value,
CNV_CONSOLE_NUMBER_MENU -> four byte integer containing
a console number value
(menu version),
CNV_CONSOLE_SLOT -> four byte integer containing
a console slot value,
CNV_CONSOLE_SLOT_MENU -> four byte integer containing
a console slot value
(menu version),
CNV_CONSOLE_SLOT_WILD -> four byte integer containing
a wildcarded console slot
value,
CNV_CONSOLE_SLOT_WILD_MENU -> four byte integer
containing a wildcarded
console slot value
(menu version),
CNV_CONSOLE_PA_SLOT -> four byte integer
containing a console
PA slot value,
CNV_CONSOLE_PA_SLOT_MENU -> four byte integer
containing a console
PA slot value
(menu version),
CNV_CONSOLE_SA_SLOT -> four byte integer
containing a console
SA slot value,
CNV_CONSOLE_SA_SLOT_MENU -> four byte integer
containing a console
SA slot value
(menu version))
CNV_SHARED_LOG_FILE -> LOG_NAMLEN character string
containing a shared log file
name,
CNV_SHARED_LOG_FILE_MENU -> LOG_NAMLEN character string
containing a shared log
file name (menu version),
CNV_LEX_DRAW_FILE -> CNV_LEX_DRAW_FILE_LEN character
string containing a Lex Draw
file name,
CNV_LEX_DRAW_FILE_MENU -> CNV_LEX_DRAW_FILE_LEN
character string containing
a Lex Draw file name
(menu version),
CNV_LEX_PROG_FILE -> CNV_LEX_PROG_FILE_LEN character
string containing a Lex Prog
file name,
CNV_LEX_PROG_FILE_MENU -> CNV_LEX_PROG_FILE_LEN
character string containing
a Lex Prog file name
(menu version),
CNV_LJ_NODE -> two byte integer containing a
Lumberjack node value,
CNV_LJ_NODE_MENU -> two byte integer containing a
Lumberjack node value
(menu version),
CNV_LJ_NODE_ID -> four byte integer containing a
Lumberjack node ID value,
CNV_LJ_NODE_ID_MENU -> four byte integer containing a
Lumberjack node ID value
(menu version),
CNV_MACHINE -> four byte integer containing an
accelerator machine value,
CNV_MACHINE_MENU -> four byte integer containing an
accelerator machine value
(menu version),
CNV_MACHINE_LONG -> four byte integer containing an
accelerator machine value,
CNV_CNV_TYPE -> four byte integer containing a
conversion type value,
CNV_CNV_TYPE_MENU -> four byte integer containing a
conversion type value
(menu version),
CNV_INP_TYPE -> four byte integer containing an
input type value,
CNV_INP_TYPE_MENU -> four byte integer containing an
input type value
(menu version),
CNV_SIMPLE_CLOCK_EVENT -> four byte integer containing
a clock event value,
CNV_CLOCK_EVENT -> four byte integer containing a
clock event value,
CNV_CLOCK_EVENT_MENU -> four byte integer containing
a clock event value
(menu version),
CNV_CLOCK_EVENT_LONG -> four byte integer containing a
clock event value,
CNV_CLOCK_EVENT_LONG_MENU -> four byte integer
containing a clock event
value (menu version),
CNV_MIBS_EVENT -> four byte integer containing an
MIBS clock event value,
CNV_MIBS_EVENT_MENU -> four byte integer containing an
MIBS clock event value
(menu version),
CNV_MIBS_EVENT_LONG -> four byte integer containing an
MIBS clock event value,
CNV_MIBS_EVENT_LONG_MENU -> four byte integer
containing an MIBS
clock event value
(menu version),
CNV_RRBS_EVENT -> four byte integer containing an
RRBS clock event value,
CNV_RRBS_EVENT_MENU -> four byte integer containing an
RRBS clock event value
(menu version),
CNV_RRBS_EVENT_LONG -> four byte integer containing an
RRBS clock event value,
CNV_RRBS_EVENT_LONG_MENU -> four byte integer
containing an RRBS
clock event value
(menu version),
CNV_TVBS_EVENT -> four byte integer containing a
TVBS clock event value,
CNV_TVBS_EVENT_MENU -> four byte integer containing an
TVBS clock event value
(menu version),
CNV_SIMPLE_MDAT_FRAME -> four byte integer containing
an MDAT frame value,
CNV_MDAT_FRAME -> four byte integer containing an
MDAT frame value,
CNV_MDAT_FRAME_MENU -> four byte integer containing
an MDAT frame value
(menu version),
CNV_MDAT_FRAME_LONG -> four byte integer containing an
MDAT frame value,
CNV_MDAT_FRAME_LONG_MENU -> four byte integer
containing an MDAT frame
value (menu version),
CNV_NOTIFY_CATEGORY -> four byte integer containing a
notify category value,
CNV_NOTIFY_CATEGORY_MENU -> four byte integer
containing a notify
category value
(menu version),
CNV_NOTIFY_PRIORITY -> four byte integer containing a
notify priority value,
CNV_NOTIFY_PRIORITY_MENU -> four byte integer
containing a notify
priority value
(menu version),
CNV_NOTIFY_DATA_TYPE -> four byte integer containing a
notify data type value,
CNV_NOTIFY_DATA_TYPE_MENU -> four byte integer
containing a notify
data type value
(menu version),
CNV_PRIMARY_TRANSFORM -> four byte integer containing
a primary transform value,
CNV_PRIMARY_TRANSFORM_MENU -> four byte integer
containing a primary
transform value
(menu version),
CNV_PRIMARY_TRANSFORM_LONG -> four byte integer
containing a primary
transform value,
CNV_PRIMARY_TRANSFORM_LONG_MENU -> four byte integer
containing a primary
transform value
(menu version),
CNV_COMMON_TRANSFORM -> four byte integer containing
a common transform value,
CNV_COMMON_TRANSFORM_MENU -> four byte integer
containing a common
transform value
(menu version),
CNV_COMMON_TRANSFORM_LONG -> four byte integer
containing a common
transform value,
CNV_COMMON_TRANSFORM_LONG_MENU -> four byte integer
containing a common
transform value
(menu version),
CNV_STATE_DEVICE -> four byte integer containing a
state device index,
CNV_STATE_DEVICE_MENU -> four byte integer containing a
state device index
(menu version),
CNV_STATE_VALUE -> STATE_VALUE structure containing a
state value specification,
CNV_STATE_VALUE_MENU -> STATE_VALUE structure
containing a state value
specification (menu version),
CNV_DATA_EVENT -> DATA_EVENT_DATA structure containing
a data event specification,
CNV_DATA_EVENT_MENU -> DATA_EVENT_DATA structure
containing a data event
specification (menu version),
CNV_STATE_EVENT -> DATA_EVENT_DATA structure containing
a state data event specification,
CNV_STATE_EVENT_MENU -> DATA_EVENT_DATA structure
containing a state data event
specification (menu version),
CNV_TCLK_EVENT -> DATA_EVENT_DATA structure containing
a TCLK data event specification,
CNV_TCLK_EVENT_MENU -> DATA_EVENT_DATA structure
containing a TCLK data event
specification (menu version),
CNV_DATA_SOURCE -> DATA_SOURCE_DATA structure
containing a data source
specification,
CNV_DATA_SOURCE_MENU -> DATA_SOURCE_DATA structure
containing a data source
specification (menu version),
CNV_SDA_DIR -> four byte integer containing an
SDA directory value (obsolete),
CNV_SDA_DIR_MENU -> four byte integer containing an
SDA directory value (menu version)
(obsolete),
CNV_SDA_USAGE -> four byte integer containing an
SDA usage value,
CNV_SDA_USAGE_MENU -> four byte integer containing an
SDA usage value (menu version),
CNV_SDA_FILE -> SDA_FILE_VALUE structure
containing an SDA file value
specification,
CNV_SDA_FILE_MENU -> SDA_FILE_VALUE structure
containing an SDA file value
specification (menu version),
CNV_SDA_CASE -> four byte integer containing an
SDA case value (for Collider shot),
CNV_SDA_CASE_MENU -> four byte integer containing an
SDA case value (for Collider
shot) (menu version),
CNV_EXT_SDA_CASE -> SDA_CASE_VALUE structure
containing an SDA case value
specification,
CNV_EXT_SDA_CASE_MENU -> SDA_CASE_VALUE structure
containing an SDA case value
specification (menu version),
CNV_EXT_SDA_SUBCASE -> SDA_CASE_VALUE structure
containing an SDA subcase value
specification,
CNV_EXT_SDA_SUBCASE_MENU -> SDA_CASE_VALUE structure
containing an SDA subcase
value specification
(menu version),
CNV_ALARM_LIST -> four byte integer containing an
alarm list value,
CNV_ALARM_LIST_MENU -> four byte integer containing an
alarm list value (menu version),
CNV_ALARM_HANDLER_CODE -> four byte integer containing
an alarm handler code value,
CNV_ALARM_HANDLER_CODE_MENU -> four byte integer
containing an alarm
handler code value
(menu version),
CNV_NODE_SYSTEM -> four byte integer containing a
node system type value,
CNV_NODE_SYSTEM_MENU -> four byte integer containing a
node system type value
(menu version),
CNV_NODE_HARDWARE -> four byte integer containing a
node hardware type value,
CNV_NODE_HARDWARE_MENU -> four byte integer containing
a node hardware type value
(menu version),
CNV_NODE_SOFTWARE -> four byte integer containing a
node software type value,
CNV_NODE_SOFTWARE_MENU -> four byte integer containing
a node software type value
(menu version),
CNV_NODE_STATUS -> four byte integer containing a
node status type value,
CNV_NODE_STATUS_MENU -> four byte integer containing a
node status type value
(menu version),
CNV_NODE_AREA -> four byte integer containing a
node area type value,
CNV_NODE_AREA_MENU -> four byte integer containing a
node area type value
(menu version),
CNV_NODE_OPSYS -> four byte integer containing a
node operating system type value,
CNV_NODE_OPSYS_MENU -> four byte integer containing a
node operating system type
value (menu version),
CNV_STATE_FTD_INDEX -> four byte integer containing a
state FTD index,
CNV_STATE_FTD_INDEX_MENU -> four byte integer
containing a state FTD
index (menu version),
CNV_CHAR -> simple character array (string will not
be null terminated),
CNV_XCHAR -> array of XCHAR structures containing
color encoded text,
CNV_LJ_USER_DIRECTORY -> Lumberjack user
directory string,
CNV_LJ_USER_FILE -> Lumberjack user file
name string,
CNV_SWITCH -> CNV_SWITCH_NAME_LEN character string
containing a network switch name,
user data type ID -> user data type defined by an
earlier call to
'create_user_data_type_c')
num_chars number of characters to read from screen
minimum number of characters for certain types:
(CNV_NODE -> CNV_NODE_LEN characters,
CNV_NODE_MENU -> CNV_NODE_LEN characters,
CNV_NODE_OPERATIONAL -> CNV_NODE_LEN characters,
CNV_NODE_OPERATIONAL_MENU -> CNV_NODE_LEN characters,
CNV_NODE_CONSOLE -> CNV_NODE_LEN characters,
CNV_NODE_CONSOLE_MENU -> CNV_NODE_LEN characters,
CNV_NODE_FRONTEND -> CNV_NODE_LEN characters,
CNV_NODE_FRONTEND_MENU -> CNV_NODE_LEN characters,
CNV_NODE_FRONTEND_ALL -> CNV_NODE_LEN characters,
CNV_NODE_FRONTEND_ALL_MENU -> CNV_NODE_LEN characters,
CNV_NODE_CENTRALVAX -> CNV_NODE_LEN characters,
CNV_NODE_CENTRALVAX_MENU -> CNV_NODE_LEN characters,
CNV_DEVICE -> DEVICE_NAME_LEN characters,
CNV_DEVICE_MENU -> DEVICE_NAME_LEN characters,
CNV_LONG_DEVICE -> LONG_DEVICE_NAME_LEN characters,
CNV_C_STYLE_LONG_DEVICE -> C_STYLE_LONG_DEVICE_NAME_LEN
characters,
CNV_C_STYLE_DEVICE_EXT -> C_STYLE_LONG_DEVICE_NAME_LEN
characters,
CNV_FERMI_NAME -> DEVICE_FERMI_NAME_LEN characters,
CNV_DEVICE_CLASS -> DIO_CLASS_TEXT_LEN characters,
CNV_DEVICE_CLASS_MENU -> DIO_CLASS_TEXT_LEN characters,
CNV_DEVICE_TYPE -> DIO_SHORT_DEVICE_TEXT_LEN
characters,
CNV_DEVICE_TYPE_MENU -> DIO_SHORT_DEVICE_TEXT_LEN
characters,
CNV_DBPROP -> CNV_DBPROP_LEN characters,
CNV_DBPROP_MENU -> CNV_DBPROP_LEN characters,
CNV_FTD -> CNV_FTD_LEN characters,
CNV_FTD_MENU -> CNV_FTD_LEN characters,
CNV_READING_FTD -> CNV_FTD_LEN characters,
CNV_READING_FTD_MENU -> CNV_FTD_LEN characters,
CNV_COLOR -> CNV_COLOR_LEN characters,
CNV_COLOR_MENU -> CNV_COLOR_LEN characters,
CNV_GRAPHIC_COLOR -> CNV_GRAPHIC_COLOR_LEN characters,
CNV_GRAPHIC_COLOR_MENU -> CNV_GRAPHIC_COLOR_LEN
characters,
CNV_PAGE -> PAGE_NAME_LEN characters,
CNV_WINDOW -> CNV_WINDOW_LEN characters,
CNV_WINDOW_MENU -> CNV_WINDOW_LEN characters,
CNV_TV_WINDOW -> CNV_WINDOW_LEN characters,
CNV_TV_WINDOW_MENU -> CNV_WINDOW_LEN characters,
CNV_GRAPHIC_WINDOW -> CNV_WINDOW_LEN characters,
CNV_GRAPHIC_WINDOW_MENU -> CNV_WINDOW_LEN characters,
CNV_PA_GRAPHIC_WINDOW -> CNV_PA_GRAPHIC_WINDOW_LEN
characters,
CNV_PA_GRAPHIC_WINDOW_MENU -> CNV_PA_GRAPHIC_WINDOW_LEN
characters,
CNV_ERROR -> ACNET_ERROR_TEXT_LEN characters,
CNV_ERROR_MENU -> ACNET_ERROR_TEXT_LEN characters,
CNV_SHORT_ERROR -> SHORT_ACNET_ERROR_LEN characters,
CNV_CLINKS -> DATESTRING_LEN characters,
CNV_CLINKS_DATEONLY -> CNV_CLINKS_DATEONLY_LEN
characters,
CNV_CLINKS_TIMEONLY -> CNV_TIMEONLY_LEN characters,
CNV_HHMMSS -> CNV_TIMEONLY_LEN characters,
CNV_CTIME -> ASCTIME_LEN characters,
CNV_CTIME_TIMEONLY -> CNV_TIMEONLY_LEN characters,
CNV_RAD50 -> RAD50_LEN characters,
CNV_USERNAME -> USER_NAME_LEN characters,
CNV_SR_SYSTEM -> CNV_SR_SYSTEM_LEN characters,
CNV_SR_SYSTEM_MENU -> CNV_SR_SYSTEM_LEN characters,
CNV_SAVE_LIST -> CNV_SAVE_LIST_LEN characters,
CNV_SAVE_LIST_MENU -> CNV_SAVE_LIST_LEN characters,
CNV_SDA_CASE -> CNV_SDA_CASE_LEN characters,
CNV_SDA_CASE_MENU -> CNV_SDA_CASE_LEN characters,
CNV_SDA_DIR -> CNV_SDA_DIR_LEN characters,
CNV_SDA_DIR_MENU -> CNV_SDA_DIR_LEN characters,
CNV_SSDN -> CNV_SSDN_LEN characters,
CNV_EMC -> CNV_EMC_LEN characters,
CNV_CONSOLE_NUMBER -> CNV_CONSOLE_NUMBER_LEN
characters,
CNV_CONSOLE_NUMBER_MENU -> CNV_CONSOLE_NUMBER_LEN
characters,
CNV_CONSOLE_SLOT -> CNV_CONSOLE_SLOT_LEN characters,
CNV_CONSOLE_SLOT_MENU -> CNV_CONSOLE_SLOT_LEN
characters,
CNV_CONSOLE_SLOT_WILD -> CNV_CONSOLE_SLOT_WILD_LEN
characters,
CNV_CONSOLE_SLOT_WILD_MENU -> CNV_CONSOLE_SLOT_WILD_LEN
characters,
CNV_CONSOLE_PA_SLOT -> CNV_CONSOLE_PA_SLOT_LEN
characters,
CNV_CONSOLE_PA_SLOT_MENU -> CNV_CONSOLE_PA_SLOT_LEN
characters,
CNV_CONSOLE_SA_SLOT -> CNV_CONSOLE_SA_SLOT_LEN
characters,
CNV_CONSOLE_SA_SLOT_MENU -> CNV_CONSOLE_SA_SLOT_LEN
characters,
CNV_SHARED_LOG_FILE -> LOG_NAMLEN characters,
CNV_SHARED_LOG_FILE_MENU -> LOG_NAMLEN characters,
CNV_LEX_DRAW_FILE -> CNV_LEX_DRAW_FILE_LEN characters,
CNV_LEX_DRAW_FILE_MENU -> CNV_LEX_DRAW_FILE_LEN
characters,
CNV_LEX_PROG_FILE -> CNV_LEX_PROG_FILE_LEN characters,
CNV_LEX_PROG_FILE_MENU -> CNV_LEX_PROG_FILE_LEN
characters,
CNV_LJ_NODE -> CNV_LJ_NAME_LEN characters,
CNV_LJ_NODE_MENU -> CNV_LJ_NAME_LEN characters,
CNV_LJ_NODE_ID -> CNV_LJ_NAME_LEN characters,
CNV_LJ_NODE_ID_MENU -> CNV_LJ_NAME_LEN characters,
CNV_PRIMARY_TRANSFORM_LONG -> DIO_SCALING_TEXT_LEN
characters,
CNV_PRIMARY_TRANSFORM_LONG_MENU -> DIO_SCALING_TEXT_LEN
characters,
CNV_COMMON_TRANSFORM_LONG -> DIO_SCALING_TEXT_LEN
characters,
CNV_COMMON_TRANSFORM_LONG_MENU -> DIO_SCALING_TEXT_LEN
characters,
CNV_STATE_DEVICE -> DEVICE_NAME_LEN characters,
CNV_SDA_USAGE -> SDA_USAGE_NAME_LEN characters,
CNV_SWITCH -> CNV_SWITCH_NAME_LEN characters)
(These values may also be obtained by calling
'numeric_default_length_c'.)
color display color for possible output text
(If a background color other than black is desired,
a compound color value can be constructed using
'tv_colors' or 'TV_COLORS_WBLINK'.)
(constants are in 'cnsparam')
[minimum] minimum acceptable value
(default is NULL - no range check)
[maximum] maximum acceptable value
(default is NULL - no range check)
[fill_char] character to use for filling out the field for
possible output text (default is BLANK)
[justify] justification parameter for possible output text
(Note: This has no effect on types CNV_CHAR and
CNV_XCHAR.)
(CNV_LEFT_JUSTIFY -> left justify,
CNV_RIGHT_JUSTIFY -> right justify,
CNV_NO_JUSTIFY -> no justification (default))
[options] input options
(WMNGR_OPT_NONE -> no options selected,
WMNGR_OPT_USE_DIALOG -> use input dialogs if available)
This function returns status values as follows:
CBS_OK success
CBS_WINDOW_OCCLUDED window is occluded or request is not in
visible portion of the window
CBS_RANGE value was outside of the prescribed range
otherwise negative of location of first bad character
This function requires the following include files:
cnsparam_h, cns_data_structs_h, cbslib_h, acnet_errors_h
Related functions:
ascii_to_numeric(_c), window_tvm(_c), window_display_value(_c),
window_row_to_entry_c, numeric_default_length_c, numeric_data_length_c,
set_enumerated_strings_c, modify_enumerated_strings_c,
get_enumerated_strings, create_user_data_type_c, set_logical_strings,
get_logical_strings, set_bit_mask_strings_c, get_bit_mask_strings_c,
tv_colors, TV_COLORS_WBLINK, intro_tv_windows
C/C++ usage:
char fill_char = BLANK;
short window_id;
int status;
int row = 1;
int left_column = 1;
int value;
int data_type = CNV_LONG;
int num_chars = 10;
int color = GREEN;
int minimum = 0;
int maximum = 31;
int justify = CNV_NO_JUSTIFY;
unsigned int options = WMNGR_OPT_NONE;
status = window_input_value_c(window_id,row,left_column,
(void *) &value,data_type,num_chars,
color,(void *) &minimum,
(void *) &maximum,fill_char,justify,
options);