NotificationDialog

From Vendetta Lua
Revision as of 17:40, 17 May 2008 by Chefkoch (talk | contribs) (New page: 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 sec...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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): <source lang="lua"> NotificationDialog:SetMessage("I'm doing stuff!") ShowDialog(NotificationDialog, iup.CENTER, iup.CENTER)

local t = Timer() t:SetTimeout(2000, function() HideDialog(NotificationDialog) end) </source>

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