DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting message box from modal to non-modal

I have created a Dialog box that works well transferring variables but have now come across the need to keep this dialog open while exploring the VIEW and REPORT panels.  I understand non-modal dialog boxes allow for this and would like to convert or rebuild my current dialog  box to non-modal. Is this possible?

 

If I have to create a new non-modal dialog box, how is this done?  I have tried several examples that suggest using the SUDDlgCreate instead of SUDDlgShow but with no success.  It doesn't appear clear where the disticntion between modal and non-modal is made.

 

Thanks,

Ben

 

 

 

0 Kudos
Message 1 of 3
(4,685 Views)

Nevermind,  I figured it out!

 

The reason I was not having success with SUDDlgCreate was because while trying to run it, I had the original dialog open.  this was causing an error saying the dialog was already created.

 

Ben

0 Kudos
Message 2 of 3
(4,681 Views)

Hi All,

 

Another thing to look out for is that the modal SUDialog can pass a VBScript variable as a 3rd paramater between the calling VBScript and the called SUDialog.  The Non-modal SUDialog can NOT pass a VBScript variable in this way.

 

Otherwise there are no changes necessary in the SUDialog ittself, just the function used to call it as modal or non-modal.

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 3 of 3
(4,654 Views)