WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStForm class reference

SetCoordType

This method changes the coordinates type on a specific form.

Ole declaration

VARIANT_BOOL SetCoordTypeByName(LPCTSTR sFormName, BYTE bCoordType);

VARIANT_BOOL SetCoordTypeById(SHORT usFormId, BYTE bCoordType);

Parameters
sFormName
The form's name.
usFormId
The form's id.
bCoordType
The new coordinates type.
Return Value

On success, SetCoordType returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks

The available coordinate types are:

The available coordinate can be found on the WSTFormConstants enumeration.

The default coordinates type is WS_FORM_CT_BYCELL.

Example
C#
using WirelessStudioOleWidgets;
WStFactory oFactory = new WStFactory();
WStForm oForm = new WStForm ();
short formId = 10;
oFactory.CreateFormById(formId);
oForm.SetCoordTypeById(formId);
Visual Basic 6 (Full Example: BasicPropertiesDemoModule.bas.txt)
Public wsForm As New WStForm
...
'Form creation and customization
    wsFactory.CreateFormByName "myForm"
    wsForm.SetCoordTypeByName "myForm", WS_FORM_CT_BYPERCENTAGE
...	
See also

AddObject | CommitChanges

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference