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 ellipse button is clicked.
| VB.NET | Private Sub object_EllipseClicked(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.EllipseClicked |
| VB | Private Sub object_EllipseClicked() |
| C#.NET | void object_EllipseClicked(object sender, EventArgumentType e); |
| VC++ | void OnEllipseClickedobject(); |
| C | HRESULT OnEllipseClickedobject(); |
object
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.
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
Option Explicit
Private Sub Command1_Click()
End
End Sub
Private Sub SftMaskFiles1_EllipseClicked()
CommonDialog1.ShowOpen
SftMaskFiles1.Text = CommonDialog1.FileName
End Sub
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;
}
}
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
