SftButton/OCX 2.5

SftButton.KeyUp Event

Softel vdm, Inc.

A key is released.

Syntax       

VB.NET

Private Sub object_KeyUpEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.KeyUpEvent

VB

Private Sub object_KeyUp(KeyCode As Integer, ByVal Shift As Integer)

C#.NET

void object_KeyUpEvent(object sender, EventArgumentType e);

VC++

void OnKeyUpobject(short* KeyCode, short Shift);

C

HRESULT OnKeyUpobject(short* KeyCode, short Shift);

Delphi

procedure objectKeyUp(Sender: TObject; var KeyCode : Smallint; Shift : Smallint);

object

A SftButton object.

KeyCode

Describes the virtual key that was released. See your development environment documentation for available key code constants.

Shift

Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. It indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.

Name

Value

Description

constSftButtonShiftMask

1

Shift

constSftButtonCtrlMask

2

Control

constSftButtonAltMask

4

Alt

Comments

The KeyUp event occurs when a key is released.

If the control is part of a parent window (form, dialog, etc.) which has a default button (OK, Cancel) and the user presses the ENTER or ESCAPE keys, this event is not generated.

The KeyDown event is never generated for the TAB key.

To interpret keyboard characters (ANSI characters) use the KeyPress event.

The key typed by the user can be suppressed by setting KeyCode to 0.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com