DC_Windowlist() - modal windows

This forum is for eXpress++ general support.
Post Reply
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

DC_Windowlist() - modal windows

#1 Post by Cliff Wiernik »

I have looked at DC_Windowlist() as it relates to displaying a listing of windows attached to the application mainwindow. However, if you have normal dialog window with a modal being displayed, is there any way to display a listing of all windows open via the object tree.

For example:

Simple Interest dialog
Popup Window (modal) displayed on dialog
Popup window 2 (modal) displayed on popup window 1 and which is the new setappwindow.

I would like to be able to get a listing of all windows open. I sometimes get lockups in the application and cannot determine the cause. I have some suspicions that it is a lost modal and would like to be able to determine if I have one of these windows open tie the the current running applications. I have multiple dialogs open and the others will be responsive. However, one dialog would not be, like if you have a modal. But is something is wrong and the modal is behind the dialog, you cannot get to the modal under the dialog.

I know that if it is a proper modal, it should be on top, but if it is a unknown programmer issue (can't duplicate yet), I would like to try to be able to at least verify that this is the case so I can try to identify the cause and why it happens sometimes.

Cliff.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: DC_Windowlist() - modal windows

#2 Post by Auge_Ohr »

Cliff Wiernik wrote:... is there any way to display a listing of all windows open via the object tree.
hm ... nice Question ...
you have to build a recursive Tree at runtime from all o:Childlist()
but what about Child which have AppDeskTop() as Parent ... hm

if you have Codejock Control you can try :
x:\exp19\XCodeJock\Samples\SuiteControls\CommonDialog\CommonDialog.prg
try Sample "Window List"
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Windowlist() - modal windows

#3 Post by rdonnay »

All windows are children or grandchildren of AppDeskTop().

DC_ArrayView(AppDesktop()) will display a tree of the entire application.
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: DC_Windowlist() - modal windows

#4 Post by Cliff Wiernik »

I did not see that before. I will try looking at this again. I see some more and will look to see if I get what I want.

Thanks.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: DC_Windowlist() - modal windows

#5 Post by Cliff Wiernik »

dc_arrayview(appdesktop()) shows the windows in case that happens and can see if there is any missing. Do you know if DC_Windowlist() would be able to select these modal items. I have to try again to see if all windows are listed again if I specify appdesktop()./

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Windowlist() - modal windows

#6 Post by rdonnay »

No. DC_WindowList() only shows non-modal windows that are children of the main app.
The eXpress train is coming - and it has more cars.

Post Reply