WireLess Studio Widgets Developer's Guide |
This method shows or hides a specific widget.
VARIANT_BOOL ShowByName(LPCTSTR sObjectName, VARIANT_BOOL bShow);
VARIANT_BOOL ShowById(SHORT usObjectId, VARIANT_BOOL bShow);
On success, Show returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iFieldId = 77; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_FIELD, iFieldId, "", 0,0, 50, 50, "123"); oWidget.ShowById(iButtonId, False);
Public wsWidget As New WStWidget ... 'Hides or shows the widgets Case "visibleCheckBox" bVisible = Not bVisible wsWidget.ShowByName "topLine", bVisible wsWidget.ShowByName "button", bVisible wsWidget.ShowByName "label", bVisible wsWidget.ShowByName "checkBox", bVisible wsWidget.ShowByName "radioButton", bVisible wsWidget.ShowByName "progBar", bVisible wsWidget.ShowByName "field", bVisible wsWidget.ShowByName "listBox", bVisible wsWidget.ShowByName "comboBox", bVisible wsWidget.ShowByName "bottomLine", bVisible ...
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 |