Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

CalculatorKeyDown Event, SftMask Object

A key is pressed while the popup calculator is active.

Syntax

VB.NETPrivate Sub object_CalculatorKeyDown(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CalculatorKeyDown
VBPrivate Sub object_CalculatorKeyDown(KeyCode As Integer, ByVal Shift As Integer)
C#.NETvoid object_CalculatorKeyDown(object sender, EventArgumentType e);
VC++void OnCalculatorKeyDownobject(short* KeyCode, short Shift);
CHRESULT OnCalculatorKeyDownobject(short* KeyCode, short Shift);

object

A SftMask object.

KeyCode

Describes the virtual key pressed. 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.

ShiftValueDescription
constSftMaskShiftMask1The SHIFT key is down.
constSftMaskCtrlMask2The CONTROL key is down.
constSftMaskAltMask4The ALT key is down.

Comments

The CalculatorKeyDown event occurs when a key is pressed while the popup calculator is active.

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

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

This event should not be used to modify properties of the Masked Edit control, nor should its methods be called. This event is mainly intended to provide a mechanism to invoke online help.

See Also SftMask Events | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.