Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

querybox & dual monitors

Aug
151
0
On my dual monitor setup, querybox does not position the dialog in the center of the TCC window.

querybox /e "title" Press OK %%dlgid

The TCC window is on my left (secondary) monitor. The dialog is displayed on the left edge of the primary monitor. The vertical component of the dialog is correct if you were to slide it over to the secondary monitor.

Using msgbox...

msgbox OK "title" Press OK

works fine. Centers the dialog in the TCC window.

TC 12.01.44
 
The TCC window is on my left (secondary) monitor.

That's novel -- I never heard of anybody putting their primary monitor on the right!

The window centering function thinks that the TCC window is off the screen (because the coordinates are < 0), soit's moving the popup window to the left edge (x=0). (And yes, this was deliberate because people were moving their TCC windows offscreen but wanting the popup windows to appear onscreen.)

This function will have to get a lot more complicated to determine whether the offscreen location is really on a secondary monitor to the left (or above) the primary. I'll do something about it in the next build.
 
My primary monitor is on the right, and my secondary is on the left. It's
where the available desk space happened to be.

On Mon, Feb 28, 2011 at 10:09, rconn <> wrote:


> ---Quote (Originally by ron)---
> The TCC window is on my left (secondary) monitor.
> ---End Quote---
>
> That's novel -- I never heard of anybody putting their primary monitor on
> the right!
>
> The window centering function thinks that the TCC window is off the screen
> (because the coordinates are < 0), soit's moving the popup window to the
> left edge (x=0). (And yes, this was deliberate because people were moving
> their TCC windows offscreen but wanting the popup windows to appear
> onscreen.)
>
> This function will have to get a lot more complicated to determine whether
> the offscreen location is really on a secondary monitor to the left (or
> above) the primary. I'll do something about it in the next build.
>
>
>
>
>



--
Jim Cook
2010 Mondays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Tuesday.
 
Available desk space - my reason also. Turns out to be a good idea though because it revealed a few weak spots in our code that I was able to correct.

But, as I write this, I just realized that I forgot to account for a secondary monitor on the right. I need a bigger office!

So MSGBOX and QUERYBOX use different logic to position themselves?

If people want to control where the popup appears, they should use /POS, right?
 
Interesting. In my case - the example I gave - msgbox always appears centered over the TCC window, regardless of which monitor contained the TCC window.
 
Back
Top