WireLess Studio Widgets Developer's Guide |
Returns the position of the left side of the widget.
SHORT GetXCoordByName(LPCTSTR sObjectName);
SHORT GetXCoordById(SHORT usObjectId);
On success, GetXCoord returns the current position of the left side of the widget. On error GetXCoord returns 32767. To get extended information, call WStError::GetLastErrorCode.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iFieldId = 33; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_FIELD, iFieldId, "", 0,0, 50, 50, "123"); short x = oWidget.GetXCoordById(iFieldId);
Public wsWidget As New WStWidget ... wsWidget.SetPositionByName "topLine", wsWidget.GetXCoordByName("topLine") + iXOffset, _ wsWidget.GetYCoordByName("topLine") + iYOffset wsWidget.SetPositionByName "button", wsWidget.GetXCoordByName("button") + iXOffset, _ wsWidget.GetYCoordByName("button") + iYOffset ...
GetYCoord | GetWidth | GetHeight | SetPosition | SetSize | GetText
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 |