FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour how to list opened dialogs and switch each ohter
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
how to list opened dialogs and switch each ohter
Posted: Thu Mar 28, 2019 02: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: how to list opened dialogs and switch each ohter
Posted: Thu Mar 28, 2019 08: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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: how to list opened dialogs and switch each ohter
Posted: Sat Mar 30, 2019 02:12 AM

TKS!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651

Continue the discussion