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);
Summary of Contents for Trakker T2090
Page 1: ...TRAKKER T2090Batch Hand HeldComputer P N 067212 003 User s Manual ...
Page 4: ......
Page 14: ......
Page 19: ...Getting Started 1 ...
Page 20: ......
Page 33: ...User Interface 2 ...
Page 34: ......
Page 55: ...Application Development 3 ...
Page 56: ......
Page 61: ...Application Functions 4 ...
Page 62: ......
Page 127: ...Reader Command Reference 5 ...
Page 128: ......
Page 145: ...Configuration Command Reference 6 ...
Page 146: ......
Page 187: ...BIOS Support 7 ...
Page 188: ......
Page 205: ...Hardware Specifications 8 ...
Page 206: ......
Page 212: ......
Page 213: ...Demo Software A ...
Page 214: ......
Page 230: ......
Page 231: ...Microsoft Visual C C Settings B ...
Page 232: ......
Page 237: ...Full ASCII Charts C ...
Page 238: ......