API msgdlgtemplate1a

From Vendetta Lua
Jump to: navigation, search

msgdlgtemplate1a

Definition:
msgdlgtemplate1a(string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog
Description:
Create a dialog and optionally disable input to the background except to the given control. Note: if a control is given display the dialog with :show_all() if not use ShowDialog or :show()
Arguments:
msg dialog message
size iup size of dialog
posx iup horizontal position
posy iup vertical position
control control to unmask
bgcolor iup background color
Returns:
dialog message dialog
Example:
Note: The dialogs in both examples can't be closed without some extra work

-- with unmasked control
-- run from station menu
local d = msgdlgtemplate1aNext("bla", "200x200", 10, 10, StationLaunchButton)
d:show_all()
-- without unmasked control
local d = msgdlgtemplate1aNext("bla", "200x200", 10, 10)
ShowDialog(d)