Form show with two monitors

Started by honkinberry, May 07, 2014, 03:41:51 PM

Previous topic - Next topic

honkinberry

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

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

honkinberry

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