SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
The input insert/overtype mode is updated.
VB.NET | Private Sub object_InputModeUpdate(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.InputModeUpdate |
VB | Private Sub object_InputModeUpdate(ByVal InsertMode As Boolean) |
C#.NET | void object_InputModeUpdate(object sender, EventArgumentType e); |
VC++ | void OnInputModeUpdateobject(VARIANT_BOOL InsertMode); |
C | HRESULT OnInputModeUpdateobject(VARIANT_BOOL InsertMode); |
object
InsertMode
Defines the current insert/overtype mode.
InsertMode | Description |
---|---|
True | The control is in insert mode. |
False | The control is in overtype mode. |
The InputModeUpdate event occurs when the input insert/overtype mode is updated.
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.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxSftMask1.Caption.Text = "Insert->" AxSftMask1.InputMode = SftMaskInputModeConstants.inputSftMaskInsert AxSftMask2.Caption.Text = "Overtype->" AxSftMask2.InputMode = SftMaskInputModeConstants.inputSftMaskOvertype End Sub Private Sub AxSftMask1_InputModeUpdate(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent) Handles AxSftMask1.InputModeUpdate Label1.Text = e.insertMode End Sub Private Sub AxSftMask2_InputModeUpdate(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent) Handles AxSftMask2.InputModeUpdate Label1.Text = e.insertMode End Sub
Private Sub Form_Load() SftMask1.Caption.Text = "Insert->" SftMask1.InputMode = inputSftMaskInsert SftMask2.Caption.Text = "Overtype->" SftMask2.InputMode = inputSftMaskOvertype End Sub Private Sub SftMask1_InputModeUpdate(ByVal InsertMode As Boolean) Label1.Caption = InsertMode End Sub Private Sub SftMask2_InputModeUpdate(ByVal InsertMode As Boolean) Label1.Caption = InsertMode End Sub
private void Form1_Load(object sender, System.EventArgs e) { axSftMask1.Caption.Text = "Insert->"; axSftMask1.InputMode = SftMaskInputModeConstants.inputSftMaskInsert; axSftMask2.Caption.Text = "Overtype->"; axSftMask2.InputMode = SftMaskInputModeConstants.inputSftMaskOvertype; } private void axSftMask1_InputModeUpdate(object sender, AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent e) { label1.Text = e.insertMode.ToString(); } private void axSftMask2_InputModeUpdate(object sender, AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent e) { label1.Text = e.insertMode.ToString();
m_pMask1->Caption->Text = _T("Insert->"); m_pMask1->InputMode = inputSftMaskInsert; m_pMask2->Caption->Text = _T("Overtype->"); m_pMask2->InputMode = inputSftMaskOvertype; return TRUE; } void CProject1Dlg::OnInputModeUpdateSftMask1(BOOL InsertMode) { GetDlgItem(IDC_LABEL1)->SetWindowText(InsertMode != VARIANT_FALSE ? _T("True") : _T("False")); } void CProject1Dlg::OnInputModeUpdateSftMask2(BOOL InsertMode) { GetDlgItem(IDC_LABEL1)->SetWindowText(InsertMode != VARIANT_FALSE ? _T("True") : _T("False"));
See Also SftMask Events | Object Hierarchy