WireLess Studio Widgets Developer's Guide |
This method changes the bar color of a WS_PROGRESS_BAR widget.
VARIANT_BOOL SetBarColorByName(LPCTSTR sObjectName, SHORT usRed, SHORT usGreen, SHORT usBlue);
VARIANT_BOOL SetBarColorById(SHORT usObjectId, SHORT usRed, SHORT usGreen, SHORT usBlue);
On success, SetBarColor 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.SetBarColorById(iProgressBarId, 128, 33, 255);
Public wsWidget As New WStWidget ... Case "barColorRedField" barColorRed = sEventValue wsWidget.SetBarColorByName "progBar", barColorRed, barColorGreen, barColorBlue ...
SetBarPosition | SetStep | Step | SetRange
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 |