12-19-2017 03:38 AM
Hello!
I'm working on a GUI in DIAdem that I can use in measurement data evaluation. Currently I have a main dialog box, where I can select which channels I want to display in DIAdem View. I want to create a sub dialog box with a table where I can type in upper and lower limits for the selected channels, and display these limits as constants along with the channel signals. Is there any way I can reach the contents of the sub dialog box from the main dialog box?
Akos
12-20-2017 03:14 PM - edited 12-20-2017 03:16 PM
My approach to this has been to define an object to store the data I wish to transfer from a dialog to a calling script and pass that object in with the SUDDlgShow; the dialog then modifies and passes that object back to the script when the user is done with the dialog.
calling script:
dim oDialogInterface: set oDialogInterface = new DialogInterfaceClass
call SUDDlgShow("DesiredDlg", "dialog.SUD", oDialogInterface)
then the dialog contains these two events to handle this passing of data: Dialog_EventInitialize and Dialog_EventTerminate. They work something like this:
Sub Dialog_EventInitialize(By Ref This)
set oDialogInterface = This.GetArgument()
End Sub
Sub Dialog_EventTerminate(ByRef This)
call This.SetArgument(oDialogInterface)
End Sub
Hope this helps
12-21-2017 08:00 AM
Thanks for your reply jcopetre.
Meanwhile I used a different approach with global arrays. Based on the selection in dialog box 1, I put the selected items in an array, then in dialog box 2 I could access the contents of this array.
Akos