WireLess Studio Widgets Developer's Guide |
Sets the line's width on a WS_LINE widget.
VARIANT_BOOL SetLineWidthByName(LPCTSTR sObjectName, SHORT usWidth);
VARIANT_BOOL SetLineWidthById(SHORT usObjectId, SHORT usWidth);
On success, SetLineWidth returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The width is measured on pixels.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iLineId = 44; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LINE, iLineId , "", 0,0, 50, 50, ""); oWidget.SetLineWidthById(iLineId , 5);
Public wsWidget As New WStWidget ... 'Widgets customization wsWidget.SetTextColorByName "line", iRed, iGreen, iBlue wsWidget.SetLineWidthByName "line", iWidth ...
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 |