WireLess Studio Widgets Developer's Guide |
This method shows a specific form on the mobile unit.
VARIANT_BOOL ShowByName(LPCTSTR sFormName, VARIANT_BOOL bShowAsChild,VARIANT_BOOL bLoadFromFile);
VARIANT_BOOL ShowById(SHORT usFormId,VARIANT_BOOL bShowAsChild,VARIANT_BOOL bLoadFromFile);
On success, Show returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
ShowForm calls SaveToTerminal if the form hasn't been serialized and transferred.
If the form was serialized before, all the current modifications of the form and the widgets attached to it are discarded.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); WStForm oForm = new WStForm (); short formId = 10; short lineId = 15; oFactory.CreateFormById(formId); oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LINE, lineId , "MyLine", 15, 15, 30, 30, ""); oForm.AddObjectBydId(formId, lineId ; oForm.SaveToTerminalById(formId); oForm.ShowById(formId, true, true);
Public wsForm As New WStForm ... If Not wsForm.SaveToTerminalByName("myForm") Then Exit Sub End If bResult = wsForm.ShowByName("myForm", True, True) ...
SaveToTerminal | CommitChanges | WStFactory::CreateWidget | WStFactory::CreateForm
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 |