lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



I've come across another issue now though. How do I use the NATIVEPARENT attribute for iup.dialog?

  Since its value is a HWND, in Lua this is an userdata.

  So some how you show push that value in Lua and use it:

nativeparent_hwnd = getParentHWND()

dlg = iup.dialog
{
  nativeparent = nativeparent_hwnd,
   ...
}

  All known attributes that are userdata are handled that way.

If you were talking about PARENTDIALOG, then it is a string with the name of the dialog that should be set using the SetHandle function.

Best,
scuri