WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

EnableAutoComplete

Enables the auto complete feature on a WS_MENU using the menu type WS_COMBO_BOX_MENU_TYPE.

Ole declaration

VARIANT_BOOL EnableAutoCompleteByName(LPCTSTR sObjectName, VARIANT_BOOL bEnable);

VARIANT_BOOL EnableAutoCompleteById(SHORT usObjectId, VARIANT_BOOL bEnable);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
bEnable
Enables or disables the auto complete feature.
Return Value

EnableAutoComplete returns TRUE on success, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Example
Visual Basic 6 (Full Example: MenuDemoModule.bas.txt)
Public wsWidget As New WStWidget
Public wsFactory As New WStFactory
...
Case "enableAutoCompleteCheckBox"
	If wsForm.GetLastEventIntValue() = WS_STATE_CHECKED Then
		wsWidget.EnableAutoCompleteByName "comboBoxMenu", True
	Else
		wsWidget.EnableAutoCompleteByName "comboBoxMenu", False
	End If
...
See also

EnableFlatStyle

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference