how to list opened dialogs and switch each ohter

how to list opened dialogs and switch each ohter

Postby ShumingWang » Thu Mar 28, 2019 2:56 am

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
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: how to list opened dialogs and switch each ohter

Postby nageswaragunupudi » Thu Mar 28, 2019 8:07 pm

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

Re: how to list opened dialogs and switch each ohter

Postby ShumingWang » Sat Mar 30, 2019 2:12 am

TKS!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests