Why does a single call to Dlg.icon
fail to set the question icon in this example, but doing it twice works?
function vodooguiConfirm(icon) {
var Dlg = DOpus.Dlg; Dlg.template = "✓✗Confirm";
Dlg.Create(); // create detached
// 1 fails
//Dlg.icon ="question";
// 2 works
Dlg.icon ="question";
Dlg.icon ="question";
var result = Dlg.RunDlg();
}
function OnClick(cmdD) {
var aaa = vodooguiConfirm();
}
Test.dcf (2.4 KB)