WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

Step

Advances the current position of a WS_PROGRESS_BAR widget by the step increment previously set using SetStep.

Ole declaration

VARIANT_BOOL StepByName(LPCTSTR sObjectName);

VARIANT_BOOL StepById(SHORT usObjectId);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
Return Value

On success, Step returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks
Example
C#
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);
Visual Basic 6 (Full Example: ProgBarDemoModule.bas.txt)
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
...
See also

SetStep | SetRange | SetBarColor | SetBarPosition

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference