WireLess Studio Widgets Developer's Guide |
This method allows to load the layout of the forms used by an application from a xml file.
VARIANT_BOOL LoadFormsFromFile(LPCTSTR sFilePath);
On success, LoadFormsFromFile returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
The resources used by the forms specified in the xml are loaded/transferred once the forms and their widgets are created.
The tags and attributes used by the forms and resources in the xml file are detailed here.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); if (!oFactory.LoadFormsFromFile(@"..\SamplesWidgets\PickingDemoXml\pickingDemoXmlLayout.xml")){ return; }
CreateForm | CreateWidget | LoadExternalIcon | CreateCustomFont
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 |