Msgdlgtemplate1

From Vendetta Lua
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)