Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

'visible' dialog not showing

$
0
0
Hello again,

I must be missing something obvious. I create a dialog early on, and then later show it from a called function.

This creates it:
Code:

isc.Dialog.create({ ID:"NDAloginDialog",
        title:"Non-disclosure agreement required.",
        message : "Thank you for helping to try out...",
        icon:"[SKIN]warn.png",
        isModal:true,
        autoDraw:false,
        visibility:"hidden",
        showCloseButton:false,
        showModalMask:true,
    modalMaskOpacity:20,
        width:800,
//        height:200,
        buttons : [
          isc.Button.create({ title:"<span style='color:Red;'>I DO NOT AGREE</span>", autoDraw:false, autoFit:true }),
          isc.Button.create({ title:"<span style='color:Green;'>I AGREE</span>", autoDraw:false, autoFit:true })
        ],
        buttonClick : function (button, index) {
                if (index == 0) {
                        Application.destroy();
                } else {
                        updateTeamMemberNDAstatus(Application.loggedInTeamMemberID, "I AGREE");
                        this.hide();
                }
        }
});

This shows it:
Code:

if (teamMemberRecord.NDArequired) {
        m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* originalPW: " + originalPW);)
        if (originalPW == "NOT REQUIRED") {
                m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* calling updateTeamMemberNDAstatus ");)
                updateTeamMemberNDAstatus(teamMemberRecord.TeamMemberID, originalPW);
        } else { //
                m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* showing NDAloginDialog ");)
                //NDAloginDialog.draw();
                NDAloginDialog.show(); // NOTE: dialog destroys Application or just returns from modal.
                //NDAloginDialog.bringToFront();
        }
}

I have tried everything I could to get it to work. I have another instance where I use a model window that works fine when .show() is called from a button.

In the Develop Console Watch tab I can find the dialog. It is both 'Drawn' and 'Visible'. Yet, when I select it in the Watch tab, I only see a faint red square where it should be on top of the form calling for it.

Since the .show() call is asynchronous, it may be that other canvases that I draw after this code may have been drawn over it.

I will try more things in the morning when I have had my coffee.

Thanks,

Rick

P.S. I am running SmartClient Version: v8.3p_2014-06-27/EVAL on Mozilla Firefox 20.0 with Firebug using Windows 7 Premium 64 bit.

Viewing all articles
Browse latest Browse all 4756

Trending Articles