Page 1 of 1

how to list opened dialogs and switch each ohter

Posted: Thu Mar 28, 2019 2:56 am
by ShumingWang
Hi!
activate no modal dialog 1 title "one"
activate no modal dialog 2 title "two"
activate no modal dialog 3 title "three"
I want
1.to find a function like return aarray {"one","two",three"}
2.to switch from current activate diaglog "three" to another "two",hide "three" ,show "two"

Thanks !
Shuming Wang

Re: how to list opened dialogs and switch each ohter

Posted: Thu Mar 28, 2019 8:07 pm
by nageswaragunupudi
The easiest way is to add the dialog to an array when activating (use on init clause) and delete from the array when closing (use valid clause).

Other way is
aWnd := GetAllWin()
Check if each oWnd in aWnd is a valid object and if it is a dialog and add it to aDialog array

Re: how to list opened dialogs and switch each ohter

Posted: Sat Mar 30, 2019 2:12 am
by ShumingWang
TKS!
Shuming Wang