HeaderPane
Main
Hide
Share Link
Print

Rollup Method, SftMask Object

Closes the popup calendar, popup calculator and autocomplete window.

Syntax

C#void object.Rollup();
VB.NETobject.Rollup()
C++HRESULT object->Rollup();
CHRESULT object->raw_Rollup();

object

A SftMask object.

Comments

The Rollup method closes the popup calendar, popup calculator and autocomplete window.

The popup calendar, popup calculator and autocomplete window normally close automatically, if the control loses the input focus. If an application wants to forcibly close these windows, particularly in a MatchCustom event, the Rollup method can be used.

Examples

C# View entire sample code

        axSftMask1.AutoComplete.AddBottom("ZIP-Code Lookup ...", 2);
        axSftMask1.AutoComplete.AddBottom("State Lookup ...", 2);
    }
}

private void axSftMask1_MatchCustom(object sender, AxSftMaskLib80._ISftMaskEvents_MatchCustomEvent e)
{
    if (e.entryType == 1) {
        axSftMask1.Rollup();
        MessageBox.Show("We could be looking up ZIP codes in another application...");
        axSftMask1.Text = "12345";
    }
    if (e.entryType == 2) {
        axSftMask1.Rollup();
        MessageBox.Show("We could be looking up states in another application...");
        axSftMask1.AutoComplete.Refresh();

VB.NET View entire sample code

    If e.count > 6 Then
        AxSftMask1.AutoComplete.AddBottom("ZIP-Code Lookup ...", 2)
        AxSftMask1.AutoComplete.AddBottom("State Lookup ...", 2)
    End If
End Sub

Private Sub AxSftMask1_MatchCustom(ByVal sender As Object, ByVal e As AxSftMaskLib80._ISftMaskEvents_MatchCustomEvent) Handles AxSftMask1.MatchCustom
    If e.entryType = 1 Then
        AxSftMask1.Rollup()
        MsgBox("We could be looking up ZIP codes in another application...")
        AxSftMask1.Text = "12345"
    End If
    If e.entryType = 2 Then
        AxSftMask1.Rollup()
        MsgBox("We could be looking up states in another application...")
        AxSftMask1.AutoComplete.Refresh()

C++ View entire sample code

        m_pMask1->AutoComplete->AddBottom(_T("ZIP-Code Lookup ..."), 2);
        m_pMask1->AutoComplete->AddBottom(_T("State Lookup ..."), 2);
    }
}

void CProject1Dlg::OnMatchCustomSftMask1(LPCTSTR Text, LPCTSTR EntryText, short EntryType)
{
    if (EntryType == 1) {
        m_pMask1->Rollup();
        AfxMessageBox(_T("We could be looking up ZIP codes in another application..."), MB_OK, 0);
        m_pMask1->Text = _T("12345");
    }
    if (EntryType == 2) {
        m_pMask1->Rollup();
        AfxMessageBox(_T("We could be looking up states in another application..."), MB_OK, 0);
        m_pMask1->AutoComplete->Refresh();

See Also SftMask Object | Object Hierarchy


Last Updated 11/15/2026 - (email)
© 2026 Softel vdm, Inc.