Page 1 of 1

DC_Windowlist() - modal windows

Posted: Fri Nov 15, 2013 10:40 am
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.

Re: DC_Windowlist() - modal windows

Posted: Fri Nov 15, 2013 1:06 pm
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"

Re: DC_Windowlist() - modal windows

Posted: Fri Nov 15, 2013 3:14 pm
by rdonnay
All windows are children or grandchildren of AppDeskTop().

DC_ArrayView(AppDesktop()) will display a tree of the entire application.

Re: DC_Windowlist() - modal windows

Posted: Fri Nov 15, 2013 3:21 pm
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.

Re: DC_Windowlist() - modal windows

Posted: Fri Nov 15, 2013 3:33 pm
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()./

Re: DC_Windowlist() - modal windows

Posted: Sun Nov 17, 2013 7:51 am
by rdonnay
No. DC_WindowList() only shows non-modal windows that are children of the main app.