Difference between revisions of "Msgdlgtemplate1"

From Vendetta Lua
Jump to: navigation, search
(New page: A borderless iup dialog with a message and a button. Display with :show() or ShowDialog(). Examples CreateNotEnoughStorageMenu, [[API_Index#CreateI...)
 
(No difference)

Latest revision as of 22:16, 2 December 2008

A borderless iup dialog with a message and a button. Display with :show() or ShowDialog(). Examples CreateNotEnoughStorageMenu, CreateInvalidAmountMenu, ConfirmationDialog

Functions

SetMessage

Definition:
SetMessage(userdata self, string message, string buttontitle, function cb) -> nil

Description:
Sets message, title of button and a callback.

Arguments:
self this dialog
message message to display in the dialog
buttontitle text to display on button (optional default is "Cancel")
cb function to call on button click (optional)