OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: honkinberry on May 07, 2014, 03:41:51 PM

Title: Form show with two monitors
Post by: honkinberry on May 07, 2014, 03:41:51 PM
I can't seem to get a form to display on a second monitor.

A user has dragged a form onto the second monitor, and then a companion dialog needs to be displayed.
If I query the GetPos of the first form, it shows an X value that is negative.
But when I pass a negative X value to form_show, it appears to be ignored, and the second form always displays on the primary monitor.

Any workaround?

Thanks for any tips!

--J
Title: Re: Form show with two monitors
Post by: owenwengerd on May 08, 2014, 08:31:47 AM
That's a bug. The OpenDCL code ignores negative values for dialog position. I think the only solution is to fix the bug, which I will do for the next build.
Title: Re: Form show with two monitors
Post by: honkinberry on May 08, 2014, 08:48:56 AM
That would be pretty amazing if you could!

The usage is for a Right Click menu.
I've attached the code, in case anyone is curious.
The intention is to be able to call it with just a list of strings, and an X,Y position, and it will return the string selected.
So engineered to be a standard, reusable component.

We've had it in place for about a year.  And while certainly not perfect, the response has been roundly positive, with the two-monitor situation the only comment.

Cheers!

--J