|
|
WireLess Studio Widgets Developer's Guide |
|
This method changes the coordinates type on a specific form.
VARIANT_BOOL SetCoordTypeByName(LPCTSTR sFormName, BYTE bCoordType);
VARIANT_BOOL SetCoordTypeById(SHORT usFormId, BYTE bCoordType);
On success, SetCoordType returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The available coordinate types are:
The available coordinate can be found on the WSTFormConstants enumeration.
The default coordinates type is WS_FORM_CT_BYCELL.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); WStForm oForm = new WStForm (); short formId = 10; oFactory.CreateFormById(formId); oForm.SetCoordTypeById(formId);
Public wsForm As New WStForm
...
'Form creation and customization
wsFactory.CreateFormByName "myForm"
wsForm.SetCoordTypeByName "myForm", WS_FORM_CT_BYPERCENTAGE
... 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 |