/
UID_CreateFromFile
UID_CreateFromFile
Declaration
Delphi
function UID_CreateFromFile(const fileName: WideString; const dialogName: WideString): Integer;
C/C++
int UID_CreateFromFile(const wchar_t * fileName: WideString, const wchar_t * dialogName);
ActiveX
HRESULT _stdcall UID_CreateFromFile([in] BSTR fileName, [in] BSTR dialogName, [out, retval] unsigned long* Result);
Description
Create dialog given a configuration file and a name.
Arguments
fileName
Name and Path to the dialog file, xml formatted. See Description in nsUIDriver documentation.
dialogName
Name of the dialog inside the file, there could be more than one dialog in the file.
Return
Integer : Handle to the dialog created.
Sample
C#
string dialogXML = "g6BasicDialog.xml"; string dialogName = "Dialog"; // You only need to Create the Dialog the first time. It will be save as long as the Pad is not rebootet. dialogHandle = SigDev.UID_CreateFromFile(dialogXML, dialogName);