WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

SetStep

Sets the step increment on a WS_PROGRESS_BAR  widget.

Ole declaration

VARIANT_BOOL SetStepByName(LPCTSTR sObjectName, LONG lStep);

VARIANT_BOOL SetStepById(SHORT usObjectId, LONG lStep);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
lStep
The new step increment.
Return Value

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

Remarks

The default step increment is 1.

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.SetStepById(iProgressBarId, 11);
Visual Basic 6 (Full Example: ProgBarDemoModule.bas.txt)
Public wsWidget As New WStWidget
...
wsWidget.SetRangeByName "progBar", 0, 50
wsWidget.SetStepByName "progBar", 1
...
See also

Step | SetRange | SetBarColor | SetBarPosition

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