SftMask/OCX 6.5

SftMaskAutoComplete.Mode Property

Softel vdm, Inc.

Defines the autocomplete behavior.

Syntax       

Get

VB.NET

Style = object.Mode  As SftMaskAutoCompleteModeConstants

VB

Style = object.Mode  As SftMaskAutoCompleteModeConstants

C#.NET

SftMaskAutoCompleteModeConstants Style = object.Mode;

VC++

enum SftMaskAutoCompleteModeConstants Style = object->Mode;
enum SftMaskAutoCompleteModeConstants Style = object->GetMode();

C

HRESULT object->get_Mode(enum SftMaskAutoCompleteModeConstants* Style);

Delphi

Style := object.Mode  : TOleEnum;

Put

VB.NET

object.Mode = Style  As SftMaskAutoCompleteModeConstants

VB

object.Mode = Style  As SftMaskAutoCompleteModeConstants

C#.NET

SftMaskAutoCompleteModeConstants object.Mode = Style;

VC++

enum SftMaskAutoCompleteModeConstants object->Mode = Style;
void object->PutMode(enum SftMaskAutoCompleteModeConstants Style);

C

HRESULT object->put_Mode(enum SftMaskAutoCompleteModeConstants Style);

Delphi

object.Mode := Style  : TOleEnum;

object

A SftMaskAutoComplete object.

Style

Defines the autocomplete behavior.

Style

Value

Description

autocompleteSftMaskNone

0

The autocomplete feature is not available.

autocompleteSftMaskSuggest

1

As data is entered, the control searches the list of saved entries and displays matching entries as a list below the control.

autocompleteSftMaskAppend

2

As data is entered, the control searches the list of saved entries and displays the remainder of the first matching item beyond the insertion point.

autocompleteSftMaskSuggestAppend

3

Combines autocompleteSftMaskSuggest and autocompleteSftMaskAppend by displaying both the list below the control and the remainder of the first matching item.

Comments

The Mode property defines the autocomplete behavior.

Saved autocomplete entries are stored in the file defined by the AutoComplete.File property.

The modes autocompleteSftMaskSuggest and autocompleteSftMaskSuggestAppend display a list of matching entries below the control. If no matching items are found, the list is not displayed. If the user selects an entry from the displayed list, the MatchAccept (or MatchCustom) event occurs.

Mode autocompleteSftMaskSuggest allows the addition of custom entries using the AutoComplete.AddTop and AutoComplete.AddBottom methods while handling the MatchAddCustomItems event. Other modes do not support custom entries. If the user selects and accepts a custom entry, the MatchCustom event occurs.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com