WireLess Studio Widgets Developer's Guide |
Call this method to create a new form. Once a form is created it can be manipulated using the WStForm object.
A form is a modal dialog that can be used to display any widget created with CreateWidget, which can be attached to a form by calling WStForm::AddObject.
VARIANT_BOOL CreateFormByName(LPCTSTR sName);
VARIANT_BOOL CreateFormById(SHORT usFormId);
On success, CreateForm returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
Forms created using CreateFormByName can be modified using only the methods with the suffix ByName.
Forms created using CreateFormById can be modified using only the methods with the suffix ById.
The first id that can be to create a form is 11.
Currently, only 38 forms per application can be created.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); short iFormId = 5; oFactory.CreateFormById(iFormId);
Public wsForm As New WStForm Public wsFactory As New WStFactory ... 'Form creation and customization wsFactory.CreateFormByName "myForm" wsForm.SetCoordTypeByName "myForm", WS_FORM_CT_BYPERCENTAGE ...
FindForm | CreateWidget | WStForm::SetCoordType
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 |