Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

MatchAccept Event, SftMask Object

The user has accepted an autocomplete text entry.

Syntax

VB.NETPrivate Sub object_MatchAccept(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MatchAccept
VBPrivate Sub object_MatchAccept(ByVal Text As String, EntryText As String, Accept As Boolean)
C#.NETvoid object_MatchAccept(object sender, EventArgumentType e);
VC++void OnMatchAcceptobject(_bstr_t Text, _bstr_t* EntryText, VARIANT_BOOL* Accept);
CHRESULT OnMatchAcceptobject(BSTR Text, BSTR* EntryText, VARIANT_BOOL* Accept);

object

A SftMask object.

Text

A string containing the current control contents. Equivalent to the Text property (including all literals, regardless of the current ClipMode settings).

EntryText

A string containing the autocomplete entry selected by the user. The EntryText parameter can be modified to change the text.

Accept

A Boolean value. If True is returned, the autocomplete text entry is used to update the control contents. If False is returned, the selected autocomplete text entry is discarded. The default is True.

Comments

The MatchAccept event occurs when the user has accepted an autocomplete text entry.

The MatchAccept event can be used to reject or modify an autocomplete entry that the user has selected and accepted.

If a custom autocomplete entry is accepted by the user, the MatchCustom event occurs instead of the MatchAccept event.

While handling this event, the Masked Edit control must not be updated through its methods or properties.

The MatchAccept event only occurs when AutoComplete.Mode is set to autocompleteSftMaskSuggest or autocompleteSftMaskSuggestAppend, the entry list is displayed and the user makes and accepts a selection. This event does not occur for other modes.

See Also SftMask Events | Object Hierarchy


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