far.DialogInit
hDlg = far.DialogInit (Guid,X1,Y1,X2,Y2,HelpTopic,Items,Flags,fDlgProc)
Parameters:
Guid: string
X1: integer
Y1: integer
X2: integer
Y2: integer
HelpTopic: string, or nil
Items: table (array of tFarDialogItem)
Flags: flags
fDlgProc: function (dialog event handler), or nil
Returns:
hDlg: userdata (or nil in case of failure)
Return value
The dialog handle returned by this function has the following methods:
__tostring, __gc, rawhandle and send.
hDlg:rawhandle()
returns the original value of handle received from Far Manager
that is suitable for using with LuaJIT FFI and as a table key.
hDlg:send(...)
is equivalent to far.SendDlgMessage(hDlg, ...)
Far API used:
DialogInit, DlgProc