LOCKWINDOWTOOWNER Question
Posted: Fri Feb 14, 2014 1:15 pm
How is the DCGETOPTIONS LOCKWINDOWTOOWNER supposed to work. Based on the documentation, when used for a modal, it should limit the ability of the modal to be dragged outside the owner, which would be the application windows. However, when I use it for a modal popup, I can drag it off the application dialog, to the extent of the screen.
I am considering its use and wondering whether it could stop some wierd application lockup problems. I encountered yesterday a user, who has dual monitors, that had our application appear to lockup. I have a popup that shows the window titles tied to the application desktop, DC_Arrayview(appdesktop()). It showed a confirmation window with the position of -32035,32920 and size of 230,181, which would be off the screen. It normally would be at 682,519 or some similar location depending on the postion of the application desktop.
Obviously, if the modal dialog is off the screen, you cannot click on the yes/no.
I have the suspicion that sometimes a modal dialog is getting behind a dialog and thus cannot be clicked on. I have seen it happen but cannot recreate what causes it. Any other thoughts on how to prevent this from happening. I have searched through my application for all modal dialogs to assure that they always use the SETAPPWINDOW clause, and verify that it works normally. But in certain instances, I have seen it happen.
I am considering its use and wondering whether it could stop some wierd application lockup problems. I encountered yesterday a user, who has dual monitors, that had our application appear to lockup. I have a popup that shows the window titles tied to the application desktop, DC_Arrayview(appdesktop()). It showed a confirmation window with the position of -32035,32920 and size of 230,181, which would be off the screen. It normally would be at 682,519 or some similar location depending on the postion of the application desktop.
Obviously, if the modal dialog is off the screen, you cannot click on the yes/no.
I have the suspicion that sometimes a modal dialog is getting behind a dialog and thus cannot be clicked on. I have seen it happen but cannot recreate what causes it. Any other thoughts on how to prevent this from happening. I have searched through my application for all modal dialogs to assure that they always use the SETAPPWINDOW clause, and verify that it works normally. But in certain instances, I have seen it happen.