When I use the following code:
The label should be positioned on the screen center, but it isn't. The horizontal (x)position is OK, but the vertical (y) position is well below the screen center on a fullscreen dialog window. The getsystemmetrics call returns the right value's (1024 * 768 in my case) Is there some error in the pixels-to-units conversion?
-------------
Kind regards,
Peter.
Code:
Dim X As Long, Y As Long Dialog Pixels hDlg, GetSystemMetrics(% SM_CXSCREEN) ,GetSystemMetrics(%SM_CYSCREEN) To Units x, y Control Add Label, hDlg, -1, "Test!", X\2-20, Y\2-10, 40, 20
-------------
Kind regards,
Peter.
Comment