Dual Monitors

Post Reply
Colin Haig
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Dual Monitors

Post by Colin Haig »

Hi All

When I move the app to the second monitor and open an MDI window no problem but if I open a module that just uses a dialog - the dialog
opens on the other screen. (main screen)

I recompiled one my old xharbour and fwh11.05 apps and the problem did not occur - recently have upgraded to FWH14.4 and Harbour 3.2

Cheers

Colin
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Dual Monitors

Post by driessen »

I experienced the same problem and I found out how to solve it.
But I'm at the festival Rock Werchter in Belgium right now but I'll send you my answer next Monday.

Please remind me in case I would forget.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Colin Haig
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Dual Monitors

Post by Colin Haig »

Hi Michel
Hope the festival was good - just a reminder about the dual monitor issue.

Cheers

Colin
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Dual Monitors

Post by driessen »

Sorry, I forgot to answer.

I indeed experienced the same problem.

I define oWnd with a button bar. Windows oWnd is created on both screens. If I open a dialog box, the box is place at the top of the second monitor. Normally, it is placed in the middle of the first monitor.

So I changed the width of my Windows :

Code: Select all

DEFINE WINDOW oWnd FROM 0,0 TO cHeight,cWidth
If I take care that the width of oWnd is not bigger than the width of my monitor, the dialog boxes, defined later, are beautifully centered.

I hope that my explanation can help you.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply