Untitled

                Never    
Lua
       
--****************************************************************************
-- FUNCTION     : lowlevel.ConfirmOperation
-- AUTHOR       : Augusto Veloso
-- DESCRIPTION  : 
--****************************************************************************
function lowlevel.ConfirmOperation(title, text, timeout, yesstr, nostr )
------------------------------------------------------------------------------
  local fName = "lowlevel.ConfirmOperation";
------------------------------------------------------------------------------

    local ret;
  timeout = (timeout ~= nil) and timeout or __LD__.defMessageBoxTimeout;
  yesstr = (yesstr ~= nil) and yesstr or __LD__.defMessageBoxValidateOption;
  nostr  = (nostr ~= nil)  and nostr  or __LD__.defMessageBoxCancelOption;
  ret = MagicDispDialog(title, text, yesstr, nostr, nil, timeout, 1);
    dbg.Message(fName, utils.format("Return Value[%s]", utils.nilstring(ret)));
    return ( ret == 1 );
end

Raw Text