Positioning a dialog box

Positioning a dialog box

Postby driessen » Wed Mar 21, 2018 5:18 pm

Hello,

I positione my dialog boxes like this :
Code: Select all  Expand view  RUN
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.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Positioning a dialog box

Postby karinha » Wed Mar 21, 2018 6:54 pm

Do you do it this way?

Image

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7844
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Positioning a dialog box

Postby Antonio Linares » Thu Mar 22, 2018 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests