Purpose |
Inputs a menu option | ||
Syntax |
int inpm_e(data, mapnr) | ||
Parameters |
short* data |
Pointer to variable containing number of map to display over the current input field | |
|
int mapnr |
Menu map to display | |
Description |
The inpm_e() function allows the entry of a value from a menu while the cursor is still in the main data entry map This function replaces the old function inpm_option which also required the number of fields in the menu. It assumes that data entry processing is being done and that the function map_use() has been called to set the global variables input_map and input_field. This function displays the menu and if the parameter data is not zero, it shows the map given by map number (mapnr + data) over the field given by the global variable input_field. If <Space> is pressed, a choose operation is performed on the map specified by the parameter mapnr, otherwise the number or mnemonic key pressed by the user defines the value of the input data. If the user presses a function key or a number key which has not been set up, this is equivalent to pressing <Space>. If an option is selected, the function inpm_e() shows the map with a map number (mapnr + <value of field chosen>) over the current input field. The parameter data is set to the option chosen. | ||
Return values |
Returns ESCAPE if the user presses <Esc>, otherwise returns 0 | ||
See also |
|||
Example |
|