WireLess Studio Widgets Developer's Guide |
Returns the height of a widget.
SHORT GetHeightByName(LPCTSTR sObjectName);
SHORT GetHeightById(SHORT usObjectId);
On success, GetHeight returns the width of a widget. On error GetHeight 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 width = oWidget.GetHeightById(iFieldId);
Public wsWidget As New WStWidget ... If wsWidget.GetWidthByName("button") = iWidth And _ wsWidget.GetHeightByName("button") = iHeight Then Exit Sub End If ...
GetXCoord | GetYCoord | GetWidth | 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 |