DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

have several dialogs in an .SUD file. Want to call particular dialog

I want to create a 'menu' form that has buttons. When you click the button, the appropriate dialog opens (I assume the best way to do this is simply using multiple dialogs in the same .SUD?) So, I want to call dlg2 from dlg1 when the user hits the button that should direct him to dlg2. I have tried the dlgopen ("dlg2") command, but it tells me dlg2 doesn't exist. My .SUD lists dlg1 and dlg2 as dialogs of the 'project'.
0 Kudos
Message 1 of 2
(3,804 Views)
Hi,

Yes, the best way is to create multiple dialogs in a SUD file. Then you have two commands to call the dialogs:

a)To register SUD file in DIAdem
SudDefLoad("SudExample")

b) To call SUD dialog
SudDlgShow("Para_MainDlg")

To show you this functionality I've extracted a small example from the DIAdem examples "Dialog with sub-dialogs". This shows how to call a main dialog from a VBScript and how to call sub dialogs by pushing a button. You define the command SudDlgShow in the event �eventclick� of the button. You find this attached.

I hope this will help you.

Best regards

Walter
Download All
Message 2 of 2
(3,804 Views)