Retrieving hidden dialogs

Started by Syncmas, June 25, 2015, 09:34:35 AM

Previous topic - Next topic

Syncmas

I currently have an application in Autocad using Autolisp and ODCL dialogs. The dialogs vary from modal to modeless and in most cases when the user drags it around we save the last position it was in and relaunch it in the same place.

The problem I have run into is where a user switches between 1 and multiple monitors. There are times where the dialog will fire up off screen because the last position pushes it there. I have looked at Autocad screen size settings and found that it does not appear to change when I plug in more monitors and relaunch CAD. It stays at the main display size always yes ODCL detects the size when moving dialogs so I assume it is outside of Autocad.  I looked at dcl_getscreensize but it appears to only give me the main monitor as well.

Any suggestions on what to look at to try to detect if my dialog is going to launch off the visible viewing area?

Thanks

Scott