SftMask/OCX 6.5

SftMask.InputMode Property

Softel vdm, Inc.

Defines insert/overtype mode behavior.

Syntax       

Get

VB.NET

Mode = object.InputMode  As SftMaskInputModeConstants

VB

Mode = object.InputMode  As SftMaskInputModeConstants

C#.NET

SftMaskInputModeConstants Mode = object.InputMode;

VC++

enum SftMaskInputModeConstants Mode = object->InputMode;
enum SftMaskInputModeConstants Mode = object->GetInputMode();

C

HRESULT object->get_InputMode(enum SftMaskInputModeConstants* Mode);

Delphi

Mode := object.InputMode  : TOleEnum;

Put

VB.NET

object.InputMode = Mode  As SftMaskInputModeConstants

VB

object.InputMode = Mode  As SftMaskInputModeConstants

C#.NET

SftMaskInputModeConstants object.InputMode = Mode;

VC++

enum SftMaskInputModeConstants object->InputMode = Mode;
void object->PutInputMode(enum SftMaskInputModeConstants Mode);

C

HRESULT object->put_InputMode(enum SftMaskInputModeConstants Mode);

Delphi

object.InputMode := Mode  : TOleEnum;

object

A SftMask object.

Mode

Defines insert/overtype mode behavior.

Mode

Value

Description

inputSftMaskInsertOnly

0

The control is in insert mode. The user cannot switch to overtype mode. The application can switch to overtype mode using the Insert property.

inputSftMaskInsert

1

The control is in insert mode. The user and the application can switch back and forth between insert and overtype mode. Each control maintains its own insert/overtype state, which is active until the control is destroyed.

inputSftMaskOvertype

2

The control is in overtype mode. The user and the application can switch back and forth between insert and overtype mode. Each control maintains its own insert/overtype state, which is active until the control is destroyed.

inputSftMaskInsertEntry

3

The control is in insert mode. The user and the application can switch back and forth between insert and overtype mode. The control returns to insert mode whenever it receives the input focus.

inputSftMaskOvertypeEntry

4

The control is in overtype mode. The user and the application can switch back and forth between insert and overtype mode. The control returns to overtype mode whenever it receives the input focus.

inputSftMaskInsertAppGlobal

5

All Masked Edit controls within the application are in insert mode. The user and the application can switch back and forth between insert and overtype mode globally for all Masked Edit controls. All controls share the same insert/overtype state, which is active until the application ends.

Comments

The InputMode property defines insert/overtype mode behavior.

Overtype mode is visually indicated by the selection which is automatically extended to include one character position (if possible).

The user switches between insert and overtype mode using the Insert key. The application can switch between modes using the Insert property.

To allow an application to display the current insert/overtype mode, e.g., in a status bar, the InputModeUpdate event is used to notify the application of any mode change that may occur, through user interaction, input focus change or application driven changes. By responding to the InputModeUpdate event, an application is guaranteed to be notified of the current input mode.


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