Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

EntrySelect Property, SftMask Object

Defines whether the contents are automatically selected when the control receives the input focus.

Syntax

Get

VB.NETStyle = object.EntrySelect As SftMaskEntrySelectConstants
VBStyle = object.EntrySelect As SftMaskEntrySelectConstants
C#.NETSftMaskEntrySelectConstants Style = object.EntrySelect;
VC++enum SftMaskEntrySelectConstants Style = object->EntrySelect;
enum SftMaskEntrySelectConstants Style = object->GetEntrySelect();
CHRESULT object->get_EntrySelect(enum SftMaskEntrySelectConstants* Style);

Put

VB.NETobject.EntrySelect = Style As SftMaskEntrySelectConstants
VBobject.EntrySelect = Style As SftMaskEntrySelectConstants
C#.NETSftMaskEntrySelectConstants object.EntrySelect = Style;
VC++enum SftMaskEntrySelectConstants object->EntrySelect = Style;
void object->PutEntrySelect(enum SftMaskEntrySelectConstants Style);
CHRESULT object->put_EntrySelect(enum SftMaskEntrySelectConstants Style);

object

A SftMask object.

Style

Defines whether the contents are automatically selected when the control receives the input focus.

StyleValueDescription
entrySftMaskNone0The selection is unchanged.
entrySftMaskSelectAll1The entire contents are selected, including leading and trailing literals.
entrySftMaskSelectEndHome2The contents are selected as if the user pressed the End key, followed by Shift+Home. This typically excludes leading and trailing literals from the selection, leaving the insertion point at the start of the editable contents.
entrySftMaskSelectHomeEnd3The contents are selected as if the user pressed the Home key, followed by Shift+End. This typically excludes leading and trailing literals from the selection, leaving the insertion point at the end of the editable contents.
entrySftMaskSelectHome4The contents are not selected. The insertion point is positioned at the start of the editable contents as if the user had pressed the Home key, generally past any leading literals.
entrySftMaskSelectEnd5The contents are not selected. The insertion point is positioned at the end of the editable contents as if the user had pressed the End key, generally in front of any trailing literals.

Comments

The EntrySelect property defines whether the contents are automatically selected when the control receives the input focus.

The EntrySelect property controls the selection. As the control receives the input focus, either through user intervention (keyboard only) or under application control, the selection is modified as defined by the Style argument.

When the control receives the input focus as a result of mouse input (left mouse button), the EntrySelect property has no effect, unless the EntrySelectMouse property is set to True.

Examples

VB.NET

    AxSftMask1.Caption.Text = "&IP:"
    AxSftMask1.Mask = "$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)"
    AxSftMask1.Text = "127.0.0.1"
    AxSftMask1.EditStyle = SftMaskEditStyleConstants.editSftMaskUpDown
    AxSftMask1.AutoAdvance = True
    AxSftMask1.AutoSize = True
    AxSftMask1.TabAdvance = True
    AxSftMask1.TabAdvanceLast = True
    AxSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectHome
    AxSftMask1.EntrySelectMouse = True
End Sub

VB6

    SftMask1.Caption.Text = "&IP:"
    SftMask1.Mask = "$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)"
    SftMask1.Text = "127.0.0.1"
    SftMask1.EditStyle = editSftMaskUpDown
    SftMask1.AutoAdvance = True
    SftMask1.AutoSize = True
    SftMask1.TabAdvance = True
    SftMask1.TabAdvanceLast = True
    SftMask1.EntrySelect = entrySftMaskSelectHome
    SftMask1.EntrySelectMouse = True
End Sub

C#

    axSftMask1.Caption.Text = "&IP:";
    axSftMask1.Mask = @"$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)";
    axSftMask1.Text = "127.0.0.1";
    axSftMask1.EditStyle = SftMaskEditStyleConstants.editSftMaskUpDown;
    axSftMask1.AutoAdvance = true;
    axSftMask1.AutoSize = true;
    axSftMask1.TabAdvance = true;
    axSftMask1.TabAdvanceLast = true;
    axSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectHome;
    axSftMask1.EntrySelectMouse = true;
}

C++

    m_pMask1->Caption->Text = _T("&IP:");
    m_pMask1->Mask = _T("$I^03(0,255)\\.$I^03(0,255)\\.$I^03(0,255)\\.$I^03(0,255)");
    m_pMask1->Text = _T("127.0.0.1");
    m_pMask1->EditStyle = editSftMaskUpDown;
    m_pMask1->AutoAdvance = VARIANT_TRUE;
    m_pMask1->AutoSize = VARIANT_TRUE;
    m_pMask1->TabAdvance = VARIANT_TRUE;
    m_pMask1->TabAdvanceLast = VARIANT_TRUE;
    m_pMask1->EntrySelect = entrySftMaskSelectHome;
    m_pMask1->EntrySelectMouse = VARIANT_TRUE;

    return TRUE;
}

See Also SftMask Object | Object Hierarchy


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