WireLess Studio Widgets Developer's Guide |
This method enables or disables the keyboard and touch screen input on a widget.
VARIANT_BOOL EnableByName(LPCTSTR sObjectName, VARIANT_BOOL bEnable);
VARIANT_BOOL EnableById(SHORT usObjectId, VARIANT_BOOL bEnable);
On success, Enable returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
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.EnableById(iFieldId, False);
Public wsWidget As New WStWidget ... 'Enable and disables the widgets Case "enableCheckBox" bEnabled = Not bEnabled wsWidget.EnableByName "topLine", bEnabled wsWidget.EnableByName "button", bEnabled wsWidget.EnableByName "label", bEnabled wsWidget.EnableByName "checkBox", bEnabled wsWidget.EnableByName "radioButton", bEnabled wsWidget.EnableByName "progBar", bEnabled wsWidget.EnableByName "field", bEnabled wsWidget.EnableByName "listBox", bEnabled wsWidget.EnableByName "comboBox", bEnabled wsWidget.EnableByName "bottomLine", bEnabled ...
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |