|
|
|
SftMask.InputMode Property |
Defines insert/overtype mode behavior.
Syntax
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;
|
||
C |
HRESULT object->get_InputMode(enum SftMaskInputModeConstants* Mode); |
||
Delphi |
Mode := object.InputMode : TOleEnum; |
||
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;
|
||
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 |
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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.