DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

can't open nested non-modal dialog

Hi,
I'm using 2 nested non-modal dialogs (Diadem 11) named "Dlg_Menu" and "Dlg_Liste"

' The main non-modal dialog "Dlg_Menu" works fine. I can open it !

Dim MyDlgMenu
Call SUDDefLoad("dlgImpedance.SUD")
If Nothing is SudNonModalDlgLst("Dlg_Menu") Then
Set MyDlgMenu = SudDlgCreate("Dlg_Menu")
Else
Set MyDlgMenu = SudNonModalDlgLst("Dlg_Menu")
End If

MyDlgMenu.Show
MyDlgMenu.Activate
' ======================================================

' I want to open the second nested non-modal named "Dlg_Liste" via control button defined in "Dlg_Menu" but it bugs !

dim MyDlgListe

Sub BtListe_EventClick()
Dim This : Set This = BtListe
If Nothing is SudNonModalDlgLst("Dlg_Liste") Then
Set MyDlgListe = SudDlgCreate("Dlg_Liste")
Else
Set MyDlgListe = SudNonModalDlgLst("Dlg_Liste")
End If

MyDlgListe.Show
End Sub

Error occured when executing the dialog box "Dlg_liste" !!!!

Thank you in advance

Helion Fuelcells / Aix en Provence


0 Kudos
Message 1 of 3
(3,733 Views)

Hi Andre,

 

This should work, but you should always use SudDlgCreate() when launching non-modal SUDialogs.  The SudDefLoad() command stores the full file path to THAT SUDialog in an internal variable, which can mess up subsequent non-modal SUDialog callbacks.

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 3
(3,713 Views)

Hi Brad !

Thank you for your active helps !

It works fine now ! ...

 

In parallel the trouble was related to an event occuring when I open the 2nd non-modal dialog (Dlg_Liste). 

 

Another question : The non-modal dialog don't have  "minimize" and "maximize" windows controls ?

 

Thank you again !

 

Andre Rako / Helion Fuelcells Hydrogen Power/ Aix en Provence (Fr)

0 Kudos
Message 3 of 3
(3,701 Views)