message false vbox 6 false hbox 0 1 hbox 8 vbox 0 var self = cmdarg(); var dlgname = self.getNode("name").getValue(); var dlg = props.globals.getNode("/sim/gui/dialogs/" ~ dlgname, 1); var msg = dlg.getNode("message", 1).getValue(); var textgroup = self.getNode("group-template"); self.getNode("group/group").removeChildren("group"); var lines = split("\n", msg); forindex (var i; lines) { var target = self.getNode("group/group").getChild("group", i, 1); props.copy(textgroup, target); target.getNode("text/label").setValue(lines[i]); target.getNode("enabled").setValue(1); } dlg.getParent().removeChild(dlg.getName(), dlg.getIndex());