Руководство Пользователя для Intermec 760
70
iBrowse User’s Guide
OnKeyUp
The OnKeyUp event is fired when a key on the physical or onscreen
keyboard is released and the ITCAXEdit control has focus. No return value
is required.
keyboard is released and the ITCAXEdit control has focus. No return value
is required.
Syntax
Void OnKeyUp(int key)
Example
When a key is released, display an alert.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID=”IBEAX1” CLASSID=”CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9” WIDTH=”50” HEIGHT=”25”>
</BODY>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID=”IBEAX1” CLASSID=”CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9” WIDTH=”50” HEIGHT=”25”>
</BODY>
<SCRIPT LANGUAGE=”JSCRIPT” FOR=”IBEAX1” EVENT=”OnKeyUp()”>
alert(’A key up was received’);
</SCRIPT>
</HTML>
alert(’A key up was received’);
</SCRIPT>
</HTML>
OnKeyPress
The OnKeyPress event is fired when a key on the physical or onscreen
keyboard is pressed and the ITCAXEdit control has focus. To leave the key
value as-is, set the return value to 0. To cancel the key press or have another
key value replace the value passed, set the value to –1.
keyboard is pressed and the ITCAXEdit control has focus. To leave the key
value as-is, set the return value to 0. To cancel the key press or have another
key value replace the value passed, set the value to –1.
Syntax
int OnKeyPress(int key)
Parameter
Description
key
An integer value that holds the ASCII code of the key pressed.
Parameter
Description
key
An integer value that holds the ASCII code of the key pressed.