* * *

Author Topic: Looking for tester with high DPI monitor  (Read 755 times)

BBasile

  • Sr. Member
  • ****
  • Posts: 400
Looking for tester with high DPI monitor
« on: January 14, 2018, 06:35:00 pm »
Hello, I'm looking for people who could test my soft with their high DPI monitor and tells me if it scales correctly, send screenshot of parts that are not scaled etc.

The soft is pre-compiled with Laz 1.8:

https://github.com/BBasile/Coedit/releases/tag/v3.6.0-alpha.1

You need to install this before:

https://dlang.org/download.html#dmd

Feedback can come here but preferably here:

https://github.com/BBasile/Coedit/issues/151

Please note that it's not about using the software itself, just about the appearance. You may try even if you don't give a damn about the D programming language.

For better communication you can reach me on FreeNode: B4S1L3,
usually on #d but i'll be on #lazarus and #fpc during the next days.

Thanks.

lainz

  • Hero Member
  • *****
  • Posts: 2608
  • I'm coding :)
    • Lainz
Re: Looking for tester with high DPI monitor
« Reply #1 on: January 14, 2018, 07:46:48 pm »
Your monitor is so small?

Any monitor can be used to test, does not need to be a big one.

Under Ubuntu and Windows you can change the DPI settings. On Ubuntu 17 there is an accessibility option. Under Windows 7 or newer you can change the DPI options.

I've tested High DPI apps on a notebook in a small 15' screen.

Lazarus 1.8 does everything automatically, except the values you use by code, in these cases you must scale them by hand using

ScaleX(), ScaleY()

For example if you set the width of a component by hand, you can do

Width := 10
Width := ScaleX(10, 96)

Being 96 the DPI you designed these fixed values.

I added a lot of screenshots on GitHub.
« Last Edit: January 14, 2018, 08:07:24 pm by lainz »

BBasile

  • Sr. Member
  • ****
  • Posts: 400
Re: Looking for tester with high DPI monitor
« Reply #2 on: January 15, 2018, 03:45:03 am »
Thanks, I had enough replies to have a better idea.

I'm on FC27-KDE and i can change the DPI in my xconfig file.
Actually there's an option to scale but it looks excessively better than the screenshots people sent me yesterday so i doubt this is scaling is based on DPI.

BBasile

  • Sr. Member
  • ****
  • Posts: 400
Re: Looking for tester with high DPI monitor
« Reply #3 on: January 15, 2018, 05:25:57 am »
Wow, the AutoSize property helps a lot. It was finally much more simple than expected with the help of this prop... I still have a problem with the icons though. My toolbar is based on the project resources so i probably have to add new properties, e.g ResourceName16 ResourceName24 ResourceName32...etc.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus