Msgdlgtemplate1

From Vendetta Lua
Revision as of 22:16, 2 December 2008 by Chefkoch (talk | contribs) (New page: A borderless iup dialog with a message and a button. Display with :show() or ShowDialog(). Examples CreateNotEnoughStorageMenu, [[API_Index#CreateI...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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)