how to list opened dialogs and switch each ohter

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

how to list opened dialogs and switch each ohter

Post 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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: how to list opened dialogs and switch each ohter

Post 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
Regards

G. N. Rao.
Hyderabad, India
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: how to list opened dialogs and switch each ohter

Post by ShumingWang »

TKS!
Shuming Wang
Post Reply