WireLess Studio Widgets Developer's Guide |
This methods enables or disables the display of the time on a WS_LABEL widget.
VARIANT_BOOL DisplayCurrentTimeById(SHORT usObjectId, BYTE bFormat);
VARIANT_BOOL DisplayCurrentTimeByName(LPCTSTR sObjectName, BYTE bFormat);
On success, DisplayCurrentTime returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The available formats are:
The available formats can be found on the WSTTimeFormats enumeration.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); short iLabelId = 41; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LABEL, iLabelId, "", 0,0, 50, 50, ""); oWidget.DisplayCurrentTimeById(iLabelId, (short)WSTTimeFormats.WS_TIME_FORMAT_DD_MM_YYYY_HH_MM);
Public wsWidget As New WStWidget ... wsWidget.DisplayCurrentTimeByName "labelTest8", WS_TIME_FORMAT_DD_MM_YYYY_HH_MM wsWidget.SetBackGroundColorByName "labelTest8", 167, 100, 171 ...
ShowBorder | DisplayBatteryLifePercent | Enable
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 |