WireLess Studio Widgets Developer's Guide |
Sets the current state of a WS_RADIO_BUTTON or WS_CHECK_BOX widget.
VARIANT_BOOL SetStateByName(LPCTSTR sObjectName, BYTE bState);
VARIANT_BOOL SetStateById(SHORT usObjectId, BYTE bState);
On success, SetState returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The available states can be found on the WSTWidgetConstants enumeration.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iRadioButtonId = 22; oFactory .CreateWidgetById((short)WSTFactoryConstants.WS_RADIO_BUTTON, iRadioButtonId ,"", 0,0, 50, 50, ""); oWidget.SetStateById(iRadioButton, (short)WSTWidgetConstants.WS_STATE_CHECKED);
Public wsWidget As New WStWidget ... wsWidget.SetStateByName "myRadioButton4", WS_STATE_CHECKED ...
GetState | SetGroupId | ModifyStyle
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 |