FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Positioning a dialog box
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Positioning a dialog box
Posted: Wed Mar 21, 2018 05:18 PM
Hello,

I positione my dialog boxes like this :
Code (fw): Select all Collapse
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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Positioning a dialog box
Posted: Wed Mar 21, 2018 06:54 PM
Do you do it this way?



Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Positioning a dialog box
Posted: Thu Mar 22, 2018 07:25 AM

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

Continue the discussion