Author Topic: Dcl-form-setpos has problems in 2K, 4K resolution  (Read 158 times)

XDCAD

  • Member
  • *
  • Posts: 32
Dcl-form-setpos has problems in 2K, 4K resolution
« on: November 01, 2018, 02:49:29 AM »
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

« Last Edit: November 01, 2018, 02:56:31 AM by XDCAD »

XDCAD

  • Member
  • *
  • Posts: 32
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #1 on: November 01, 2018, 02:51:09 AM »
(dcl-form-setpos ctrl 1000 0)
« Last Edit: November 01, 2018, 02:56:59 AM by XDCAD »

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2980
    • Outside The Box
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #2 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.

XDCAD

  • Member
  • *
  • Posts: 32
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #3 on: November 01, 2018, 04:32:29 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

  • Member
  • *
  • Posts: 32
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #4 on: November 01, 2018, 04:43:51 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

  • Member
  • *
  • Posts: 32
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #5 on: November 01, 2018, 04:48:00 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2980
    • Outside The Box
Re: Dcl-form-setpos has problems in 2K, 4K resolution
« Reply #6 on: November 01, 2018, 06:38:38 PM »
You should use (dcl-GetScreenSize) to obtain the display dimensions in DIP.