Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

PromptUnderlineNoFocus Property, SftMask Object

Defines whether input fields are underlined when the control does not have the input focus.

Syntax

Get

VB.NETBoolean = object.PromptUnderlineNoFocus As Boolean
VBBoolean = object.PromptUnderlineNoFocus As Boolean
C#.NETbool Boolean = object.PromptUnderlineNoFocus;
VC++VARIANT_BOOL Boolean = object->PromptUnderlineNoFocus;
VARIANT_BOOL Boolean = object->GetPromptUnderlineNoFocus();
CHRESULT object->get_PromptUnderlineNoFocus(VARIANT_BOOL* Boolean);

Put

VB.NETobject.PromptUnderlineNoFocus = Boolean As Boolean
VBobject.PromptUnderlineNoFocus = Boolean As Boolean
C#.NETbool object.PromptUnderlineNoFocus = Boolean;
VC++VARIANT_BOOL object->PromptUnderlineNoFocus = Boolean;
void object->PutPromptUnderlineNoFocus(VARIANT_BOOL Boolean);
CHRESULT object->put_PromptUnderlineNoFocus(VARIANT_BOOL Boolean);

object

A SftMask object.

Boolean

Defines whether input fields are underlined when the control does not have the input focus.

BooleanDescription
TrueAll modifiable positions in a Masked Edit control are underlined when the control does not have the input focus.
FalseModifiable positions in a Masked Edit control are displayed as defined using the Font property.

Comments

The PromptUnderlineNoFocus property defines whether input fields are underlined when the control does not have the input focus.

Using PromptUnderlineNoFocus, input fields are easily recognized by users as all modifiable positions are underlined. Even positions where data has already been entered is underlined.

Input fields are underlined only while the control does not have the input focus. The PromptUnderline property can be used to define underlining when the control has the input focus.

When used with a simple edit control (without Mask), all text is underlined.

Examples

VB.NET

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    AxSftMask1.Caption.Text = "Pin &Code:"
    AxSftMask1.Mask = "<p####>"
    AxSftMask1.PromptChar = "0"
    AxSftMask1.PromptUnderline = False
    AxSftMask1.PromptUnderlineNoFocus = True
    AxSftMask1.PswdChar = "*"
End Sub

VB6

Private Sub Form_Load()
    SftMask1.Caption.Text = "Pin &Code:"
    SftMask1.Mask = "<p####>"
    SftMask1.PromptChar = "0"
    SftMask1.PromptUnderline = False
    SftMask1.PromptUnderlineNoFocus = True
    SftMask1.PswdChar = "*"
End Sub

C#

private void Form1_Load(object sender, System.EventArgs e)
{
    axSftMask1.Caption.Text = "Pin &Code:";
    axSftMask1.Mask = "<p####>";
    axSftMask1.PromptChar = "0";
    axSftMask1.PromptUnderline = false;
    axSftMask1.PromptUnderlineNoFocus = true;
    axSftMask1.PswdChar = "*";
}

C++

    m_pMask1 = m_Mask1.GetControlUnknown();
    _ASSERT(m_pMask1 != NULL);

    m_pMask1->Caption->Text = _T("Pin &Code:");
    m_pMask1->Mask = _T("<p####>");
    m_pMask1->PromptChar = _T("0");
    m_pMask1->PromptUnderline = VARIANT_FALSE;
    m_pMask1->PromptUnderlineNoFocus = VARIANT_TRUE;
    m_pMask1->PswdChar = _T("*");

    return TRUE;
}

See Also SftMask Object | Object Hierarchy


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