|
|
WireLess Studio Widgets Developer's Guide |
|
Advances the current position of a WS_PROGRESS_BAR widget by the step increment previously set using SetStep.
VARIANT_BOOL StepByName(LPCTSTR sObjectName);
VARIANT_BOOL StepById(SHORT usObjectId);
On success, Step returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
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.StepById(iProgressBarId);
Public wsWidget As New WStWidget
...
Case "runButton"
iNumberOfIterations = iMaxVal / iStepVal
wsWidget.SetBarPositionByName "progBar", 0
For i = 0 To iNumberOfIterations
wsWidget.StepByName "progBar"
wsForm.CommitChangesByName "progBarForm"
Next i
...
SetStep | SetRange | 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 |