FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Finding out dialog size
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Finding out dialog size
Posted: Fri Nov 22, 2013 09:16 AM

Guys:

I want to display a button 50 pixels before a dialog's rightmost position. For example if the dialog is 600 pixels wide the button will be at position 550.
Is there a way to find out the dialog width and height in pixels ? Thank you.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Finding out dialog size
Posted: Fri Nov 22, 2013 12:13 PM
Try:

Code (fw): Select all Collapse
oDlg:nWidth()
oDlg:nHeight()


EMG
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Finding out dialog size
Posted: Fri Nov 22, 2013 10:48 PM
Gustavo,

A komplete sample, to move and resize a dialog with adjusting the button-position
to the dialog bottom / right.
I added a INI to save and restore the dialog.
You can detect the dialog EXIT-status ( button, system-button or RETURN )
of the dialog. It can be displayed on right mouseclick inside the main-window.
Maybe this sample can answer some of Your questions.

Download ( complete with prg, exe and make ) :
http://www.pflegeplus.com/fw_download/dlgtest1.zip







to save and restore the dialog size and position
nDWidth := oDlg:nRight
nDHeight := oDlg:nBottom

is used
To calculate the button-position on bottom / right,
oDlg:nWidth and oDlg:nHeight is needed



Best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Finding out dialog size
Posted: Sun Nov 24, 2013 07:16 AM

Uwe, Enrico:

Thank you very much !

Continue the discussion