WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

EnableTabStop

This method specifies if a widget can receive the keyboard focus when the user presses the TAB key.

Ole declaration

VARIANT_BOOL EnableTabStopById(SHORT usObjectId, VARIANT_BOOL bEnable);

VARIANT_BOOL EnableTabStopByName(LPCTSTR sObjectName, VARIANT_BOOL bEnable);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
bEnable
Specifies whether a widget can receive the keyboard focus when the user presses the TAB key.
Return Value

On success, EnableTabStop returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks
Example
C#
using WirelessStudioOleWidgets;
WStWidget oWidget = new WStWidget();
WStFactory oFactory = new WStFactory();
short iFieldId = 33;
oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_FIELD, iFieldId, "", 0,0, 50, 50, "123");
oWidget.EnableTabStopById(iFieldId, false);	
Visual Basic 6 (Full Example: CheckBoxDemoModule.bas.txt)
Public wsWidget As New WStWidget
...
wsWidget.EnableTabStopByName "exitButton", False
wsWidget.EnableTabStopByName "resetButton", False
...
See also

Show | Enable

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