Type | Description | |||
KeyCode as Integer | (By Reference) An integer that represent the key code. | |||
Shift as Integer | An integer that corresponds to the state of the SHIFT, CTRL, and ALT keys at the time of the event. The shift argument is a bit field with the least-significant bits corresponding to the SHIFT key (bit 0), the CTRL key (bit 1), and the ALT key (bit 2). These bits correspond to the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed. For example, if both CTRL and ALT are pressed, the value of shift is 6. |
Use the KeyUp event procedure to respond to the releasing of a key.
Syntax for KeyUp event, /NET version, on:
private void KeyUp(object sender,ref short KeyCode,short Shift) { } Private Sub KeyUp(ByVal sender As System.Object,ByRef KeyCode As Short,ByVal Shift As Short) Handles KeyUp End Sub |
private void KeyUpEvent(object sender, AxEXEDITORSLib._IEditorEvents_KeyUpEvent e) { } void OnKeyUp(short FAR* KeyCode,short Shift) { } void __fastcall KeyUp(TObject *Sender,short * KeyCode,short Shift) { } procedure KeyUp(ASender: TObject; var KeyCode : Smallint;Shift : Smallint); begin end; procedure KeyUpEvent(sender: System.Object; e: AxEXEDITORSLib._IEditorEvents_KeyUpEvent); begin end; begin event KeyUp(integer KeyCode,integer Shift) end event KeyUp Private Sub KeyUpEvent(ByVal sender As System.Object, ByVal e As AxEXEDITORSLib._IEditorEvents_KeyUpEvent) Handles KeyUpEvent End Sub Private Sub KeyUp(KeyCode As Integer,Shift As Integer) End Sub Private Sub KeyUp(KeyCode As Integer,ByVal Shift As Integer) End Sub LPARAMETERS KeyCode,Shift PROCEDURE OnKeyUp(oEditor,KeyCode,Shift) RETURN |
<SCRIPT EVENT="KeyUp(KeyCode,Shift)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function KeyUp(KeyCode,Shift) End Function </SCRIPT> Procedure OnComKeyUp Short llKeyCode Short llShift Forward Send OnComKeyUp llKeyCode llShift End_Procedure METHOD OCX_KeyUp(KeyCode,Shift) CLASS MainDialog RETURN NIL void onEvent_KeyUp(COMVariant /*short*/ _KeyCode,int _Shift) { } function KeyUp as v (KeyCode as N,Shift as N) end function function nativeObject_KeyUp(KeyCode,Shift) return |