NotificationDialog

From Vendetta Lua
Jump to: navigation, search

A borderless iup dialog with a message. It's displayed during non interruptible processes, like launching. Display with :show() or ShowDialog().


This example displays a message for 2 seconds (to be complete it should probably hide other UI elements while shown):

NotificationDialog:SetMessage("I'm doing stuff!")
ShowDialog(NotificationDialog, iup.CENTER, iup.CENTER)
 
local t = Timer()
t:SetTimeout(2000, function() HideDialog(NotificationDialog) end)

Functions

SetMessage

Definition:
SetMessage(ihandle ndialog, string message) -> nil

Description:
Sets message.

Arguments:
ndialog the question dialog (can be omitted with the colon syntax)
message message to display in the dialog