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.
DC_Windowlist() - modal windows
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: DC_Windowlist() - modal windows
hm ... nice Question ...Cliff Wiernik wrote:... is there any way to display a listing of all windows open via the object tree.
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
Jimmy
Re: DC_Windowlist() - modal windows
All windows are children or grandchildren of AppDeskTop().
DC_ArrayView(AppDesktop()) will display a tree of the entire application.
DC_ArrayView(AppDesktop()) will display a tree of the entire application.
The eXpress train is coming - and it has more cars.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: DC_Windowlist() - modal windows
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.
Thanks.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: DC_Windowlist() - modal windows
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
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.