message false vbox 6 1 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("hide").setValue(0); } dlg.getParent().removeChild(dlg.getName(), dlg.getIndex());