im_receive_input
4-41
4
void main (void)
{
IM_ULONG iSetup = IM_DISPLAY_ONLY, iPassFlags, ii=0;
IM_STATUS iStatus;
IM_ORIGIN iSource;
/* set up display */
im_clear_screen();
/***************************************************************************************/
/* loops through once to display prompts and fields then comes back through to gather */
/* input. If validation fails stays in field until validation passes. */
/***************************************************************************************/
do
{
im_set_cursor_xy( aScreen[ii].iRow, aScreen[ii].iCol );
iPassFlags = aScreen[ii].iFlags | iSetup ;
iStatus = im_receive_field( IM_KEYBOARD_SELECT | IM_LABEL_SELECT,
IM_INFINITE_TIMEOUT, aScreen[ii].iAttribute,
iPassFlags,aScreen[ii].iLength, &iSource,
aScreen[ii].pszText);
/* Validate if not display pass */
if (iSetup & IM_DISPLAY_ONLY)
{
ii++;
}
else if (DoValidation(aScreen[ii].pszText, aScreen[ii].iMinLength ) )
{
ii++;
iSetup = iSetup & !IM_AT_END;
}
else /* Must have been error, go to end of same field */
iSetup = iSetup | IM_AT_END;
/*See if display pass done and if is, turn into data input pass. */
if ((iSetup & IM_DISPLAY_ONLY) && ( aScreen[ii].pszText == (void *)0 ) )
{
iSetup = iSetup & !IM_DISPLAY_ONLY ; /*reset the display only bit */
ii = 0; /* and start again at the top */
}
} while ( aScreen[ii].pszText != (void *)0 ) ;
}
im_receive_input
Purpose
This function gets input from the source and places it into the received
buffer. You can use the im_get_length function after this function to get the
input length.
Syntax
#include "imt209x.h"
IM_STATUS im_receive_input
(IM_ORIGIN
allowed,
IM_UINT
timeout,
IM_ORIGIN
*source,
IM_CHAR
*received);
Содержание Trakker T2090
Страница 1: ...TRAKKER T2090Batch Hand HeldComputer P N 067212 003 User s Manual ...
Страница 4: ......
Страница 14: ......
Страница 19: ...Getting Started 1 ...
Страница 20: ......
Страница 33: ...User Interface 2 ...
Страница 34: ......
Страница 55: ...Application Development 3 ...
Страница 56: ......
Страница 61: ...Application Functions 4 ...
Страница 62: ......
Страница 127: ...Reader Command Reference 5 ...
Страница 128: ......
Страница 145: ...Configuration Command Reference 6 ...
Страница 146: ......
Страница 187: ...BIOS Support 7 ...
Страница 188: ......
Страница 205: ...Hardware Specifications 8 ...
Страница 206: ......
Страница 212: ......
Страница 213: ...Demo Software A ...
Страница 214: ......
Страница 230: ......
Страница 231: ...Microsoft Visual C C Settings B ...
Страница 232: ......
Страница 234: ...TRAKKER T2090 Hand Held Batch Computer User s Manual B 4 Compiler Options Code Generation Select CPU 80186 80188 ...
Страница 237: ...Full ASCII Charts C ...
Страница 238: ......