Author Topic: Form show with two monitors  (Read 316 times)

honkinberry

  • Full Member
  • ***
  • Posts: 102
Form show with two monitors
« 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

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2592
    • Outside The Box
Re: Form show with two monitors
« Reply #1 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.

honkinberry

  • Full Member
  • ***
  • Posts: 102
Re: Form show with two monitors
« Reply #2 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