Positioning a dialog box

Post Reply
User avatar
driessen
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Positioning a dialog box

Post by driessen »

Hello,

I positione my dialog boxes like this :

Code: Select all | Expand

ACTIVATE DIALOG Em1Dlg CENTERED
But in case I have more than one screen, how can I positione my dialog box on a second screen the same way?

If I open a dialog box on my second screen, it is always positioned at the top of the screen.

Thanks a lot for any help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.09 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
karinha
Posts: 7949
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Positioning a dialog box

Post by karinha »

Do you do it this way?

Image

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: Positioning a dialog box

Post by Antonio Linares »

Michel,

You can try this way:

oDlg:Center( oWndParent )

And it will be centered in its parent area
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply