1
0
Fork 0

use gui.Dialog() class instead of gui.loadXMLDialog() function (which has

been removed)
This commit is contained in:
mfranz 2006-08-24 16:32:58 +00:00
parent 8aa5947e7a
commit b5863d9cad

View file

@ -402,12 +402,17 @@ LeadTargetUpdate = func {
select_task_dialog = func {
var dlg = props.globals.getNode("/sim/gui/dialogs/NTPS/config/dialog", 1);
gui.loadXMLDialog(dlg, "gui/dialogs/NTPS_target_task.xml");
fgcommand("dialog-show", dlg);
dialog.load(); # load every time?
dialog.open();
}
var dialog = nil;
settimer(func {
dialog = gui.Dialog.new("/sim/gui/dialogs/NTPS/config/dialog", "gui/dialogs/NTPS_target_task.xml");
}, 0);
# timer handling to cause our update function to be called periodially
registerTimer = func {
settimer(LeadTargetUpdate, update_period );