WireLess Studio Widgets Developer's Guide |
Sets the limits of a WS_PROGRESS_BAR widget.
VARIANT_BOOL SetRangeByName(LPCTSTR sObjectName, LONG lMinValue, LONG lMaxValue);
VARIANT_BOOL SetRangeById(SHORT usObjectId, LONG lMinValue, LONG lMaxValue);
On success, SetRange returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
Negative values are allowed.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iProgressBarId = 22; oFactory .CreateWidgetById((short)WSTFactoryConstants.WS_PROGRESS_BAR, iProgressBarId, "", 0,0, 50, 50, ""); oWidget.SetRangeById(iProgressBarId , -10, 35);
Public wsWidget As New WStWidget ... 'Updates the progress bar max value Case "progBarMaxValMenu" iMaxVal = Val(wsWidget.GetOptionByName("progBarMaxValMenu", iIntValue)) wsWidget.SetRangeByName "progBar", 0, iMaxVal ...
Step | SetStep | SetBarColor | SetBarPosition
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 |