WireLess Studio Widgets Developer's Guide |
This method allows to change the orientation of a WS_LINE widget.
VARIANT_BOOL SetOrientationByName(LPCTSTR sObjectName, BYTE bOrientation);
VARIANT_BOOL SetOrientationById(SHORT usObjectId, BYTE bOrientation);
On success, SetOrientation returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The orientation can be set to one of the following constants:
The available orientation modes can be found on the WSTWidgetConstants enumeration.
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.SetOrientationById(iLineId , (short)WSTWidgetConstants.WS_ORIENTATION_VERT);
Public wsWidget As New WStWidget ... If bHorizontal Then wsWidget.SetOrientationByName "line", WS_ORIENTATION_HORIZ Else wsWidget.SetOrientationByName "line", WS_ORIENTATION_VERT End If bHorizontal = Not bHorizontal ...
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 |