Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

EllipseClicked Event, SftMask Object

The ellipse button is clicked.

Syntax

VB.NETPrivate Sub object_EllipseClicked(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.EllipseClicked
VBPrivate Sub object_EllipseClicked()
C#.NETvoid object_EllipseClicked(object sender, EventArgumentType e);
VC++void OnEllipseClickedobject();
CHRESULT OnEllipseClickedobject();

object

A SftMask object.

Comments

The EllipseClicked event occurs when the ellipse button is clicked.

This event has no built-in response. An application must implement a response for the ellipse button to perform an action.

Examples

VB.NET

Private Sub Command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Command1.Click
  End
End Sub

Private Sub AxSftMaskFiles1_EllipseClicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftMaskFiles1.EllipseClicked
    If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
        AxSftMaskFiles1.Text = OpenFileDialog1.FileName
    End If
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

VB6

Option Explicit

Private Sub Command1_Click()
    End
End Sub

Private Sub SftMaskFiles1_EllipseClicked()
    CommonDialog1.ShowOpen
    SftMaskFiles1.Text = CommonDialog1.FileName
End Sub

C#

    Application.Exit();
}

private void Form1_Load(object sender, System.EventArgs e)
{

}

private void AxSftMaskFiles1_EllipseClicked(object sender, System.EventArgs e)
{
    if (OpenFileDialog1.ShowDialog() == DialogResult.OK) {
        AxSftMaskFiles1.Text = OpenFileDialog1.FileName;
    }
}

C++

    m_vMaskFiles1 = GetDlgItem(IDC_SFTMASKFILES1)->GetControlUnknown();
    ASSERT(m_vMaskFiles1 != NULL);
    m_vMaskFiles2 = GetDlgItem(IDC_SFTMASKFILES2)->GetControlUnknown();
    ASSERT(m_vMaskFiles2 != NULL);

    return TRUE;  // return TRUE  unless you set the focus to a control
}

void CSample2Dlg::OnEllipseClickedSftMaskFiles1()
{
    CFileDialog dlg(TRUE);
    if (dlg.DoModal() == IDOK)
        m_vMaskFiles1->Text = _bstr_t(dlg.GetPathName()) ;
}

BEGIN_EVENTSINK_MAP(CSample2Dlg, CDialog)

See Also SftMask Events | Object Hierarchy


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