Dcl-form-setpos has problems in 2K, 4K resolution

Started by XDCAD, November 01, 2018, 02:49:29 AM

Previous topic - Next topic

XDCAD

Dcl-form-setpos has problems in 2K, 4K resolution

(dcl_Form_SetPos ctrl 1000 0)

The dialog box is displayed in the middle of the screen, and the screen resolution is 2560x1440.

=================================
(dcl_Form_SetPos ctrl 2000 0)

Shown outside the screen


XDCAD

#1
(dcl-form-setpos ctrl 1000 0)

owenwengerd

Which version of OpenDCL? In OpenDCL 9, position coordinates are in DIP (device independent pixels), which means the values you provide will be multiplied by your current display scaling factor as set in Windows display settings.
Owen Wengerd (Outside The Box) / ManuSoft

XDCAD

Quote from: owenwengerd on November 01, 2018, 04:24:42 AM
Which version of OpenDCL? In OpenDCL 9, position coordinates are in DIP (device independent pixels), which means the values you provide will be multiplied by your current display scaling factor as set in Windows display settings.

9.0.2.0

XDCAD

Quote from: XDCAD on November 01, 2018, 04:32:29 AM
Quote from: owenwengerd on November 01, 2018, 04:24:42 AM
Which version of OpenDCL? In OpenDCL 9, position coordinates are in DIP (device independent pixels), which means the values you provide will be multiplied by your current display scaling factor as set in Windows display settings.

9.0.2.0

I am using the WIN10 system. Are you talking about the text scaling factor of the display settings?


XDCAD

Quote from: XDCAD on November 01, 2018, 04:32:29 AM
Quote from: owenwengerd on November 01, 2018, 04:24:42 AM
Which version of OpenDCL? In OpenDCL 9, position coordinates are in DIP (device independent pixels), which means the values you provide will be multiplied by your current display scaling factor as set in Windows display settings.

9.0.2.0

And the result I want is to put the dialog box in the upper right corner.
In the same WIN10 system, 1920X1080 resolution, the result is correct.


owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft