Recent

Author Topic: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)  (Read 100974 times)

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #60 on: October 31, 2017, 01:20:50 pm »
Here I added a TRadioGroup. I did this under 100%, in Windows 7
The new TRadioGroup looks okay at 100% in Windows 7, no row overlays.
  (My old TRadioGroup has row overlay even in design time view ..)

Then I rescaled to 150%, now this.
« Last Edit: October 31, 2017, 01:29:03 pm by PeterX »
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #61 on: October 31, 2017, 01:23:10 pm »
Here's the ZIP file with the Demo Project
usually using latest Lazarus release version with Windows 10

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #62 on: October 31, 2017, 03:53:04 pm »
Why are you using a fixed-size font in the left radiogroup? It is clear that such a font does not scale well. If I select, for example the true-type font CourierNew, then scaling is correct under Win7 (note I had seen severe line overlapping in your original project, and therefore I resized everything a bit).

P.S.
Since you have the default Delphi7-font MsSansSerif in the left radiogroup I guess that this form originates from Delphi. The first thing which I do when importing anything from Delphi is to replace the form's font by "default" which gives a decent font in all OSs.

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #63 on: October 31, 2017, 04:12:47 pm »
Since you have the default Delphi7-font MsSansSerif in the left radiogroup I guess that this form originates from Delphi. The first thing which I do when importing anything from Delphi is to replace the form's font by "default" which gives a decent font in all OSs.
Oh .. I never thought about that !

Some time ago I converted all my projects from good old Delphi 5.

Maybe an issue for the Delphi => Lazarus Import procedure ?
To automatically replace this misleading MsSansSerif ?
usually using latest Lazarus release version with Windows 10

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #64 on: October 31, 2017, 04:22:27 pm »
To automatically replace this misleading MsSansSerif ?
Write a feature request in the bugtracker.

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #65 on: October 31, 2017, 04:29:35 pm »
Write a feature request in the bugtracker.
I'm not good in doing this.
Maybe they again say this is not a valid request.
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #66 on: October 31, 2017, 05:39:53 pm »
Hm, I still get overlapping rows, in Windows 7 + 150 % scaling.
With 125 % and no question 100 % it's okay.

Font is "default" now, and size is = 0

Maybe there are dependencies with graphics cards and their drivers ?
« Last Edit: October 31, 2017, 05:42:29 pm by PeterX »
usually using latest Lazarus release version with Windows 10

balazsszekely

  • Guest
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #67 on: October 31, 2017, 05:53:26 pm »
@PeterX
Quote
I'm not good in doing this.
Maybe they again say this is not a valid request.
So what? That shoudn't stop you. This is a perfectly valid request, more over the delphi-->lazarus converter is maintained by @JuhaManninen, he never refuses a good idea.

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #68 on: October 31, 2017, 06:00:16 pm »
I still don't understand how the two images relate to each other. If the right image is the upscaled 100% image then why are the texts different?

In my own test, I did not see an effect whether "DPI awareness" is off or on ("Project options" > "Application" > "For windows"), but according to the wiki site it should be on, you have it off.

Another problem can occur if you use both 100% and 150% systems for designing. Because every time the form designed in one resolution is opened in the system with the other resolution the pixel coordinates are recalculated for the new resolution. If you save the form in this resolution and open it again in the first resolution dimension may change slightly due to roud-off errors.

[EDIT]
I see another difference between the left and right screenshots: the left one is themed, the right one not. You should not expect DPI scaling to work exactly between themed and non-themed instances of the same application. System-dependent sizes (such as radiobutton or checkbox sizes) will be different even at 100%.

If you must consider your programs to run in various themes you must not provide some extra space.
« Last Edit: October 31, 2017, 06:20:58 pm by wp »

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #69 on: October 31, 2017, 06:13:12 pm »
I still don't understand how the two images relate to each other. If the right image is the upscaled 100% image then why are the texts different?
All the images show

on the left:   the Lazarus design mode view
on the right: the compiled and running EXE file.

I don't know why they are different - but THIS is the reason why I write all my posts here !
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #70 on: October 31, 2017, 06:16:55 pm »
In my own test, I did not see an effect whether "DPI awareness" is off or on ("Project options" > "Application" > "For windows"), but according to the wiki site it should be on, you have it off.
I can not fully follow, my dialogs are in german.
Switching on or off manifest makes no difference.

"LCL-Skalierung verwenden (Hi-DPI)" is switched ON.
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #71 on: October 31, 2017, 06:20:33 pm »
I see another difference between the left and right screenshots: the left one is themed, the right one not. You should not expect DPI scaling to work exactly between themed and non-themed instances of the same application. The sizes will be different even at 100%.
There is no " left and right screenshot".

While running Lazarus RAD IDE I compile and then
move the running EXE window
to the right of the design mode window
and make 1 screenshot.

Or do You mean I have to activate the manifest ?
« Last Edit: October 31, 2017, 06:24:16 pm by PeterX »
usually using latest Lazarus release version with Windows 10

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #72 on: October 31, 2017, 06:32:49 pm »
In the screenshot you find the recommended settings needed for correct HiDPI (on German Lazarus). The checkbox "Manifest-Resource verwenden..." can be off, but then you must expect some differences between design and run time because the form is designed with themes but runs without themes (that's what you are talking about - it would have been better if you had mentioned these basics in the first place).


PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #73 on: October 31, 2017, 06:43:25 pm »
Thanks a lot for Your help !

Now it looks as it should .. ;-)
usually using latest Lazarus release version with Windows 10

BeniBela

  • Hero Member
  • *****
  • Posts: 908
    • homepage
Re: Lazarus Release Candidate 5 of 1.8 (includes RC1 fpc 3.0.4)
« Reply #74 on: October 31, 2017, 09:41:06 pm »
It becomes harder and harder to find the Messages window

It does not show up in the Alt+Tab list, not in the taskbar, and nothing happens when pressing ctrl+(shift)+f8 to go to the next error

Why does it not raise itself after the compilation when there are error?

"Focus at compilation" does not help. It shows up too early, I already left it when the compilation is done and the final messages are there
« Last Edit: October 31, 2017, 10:55:33 pm by BeniBela »

 

TinyPortal © 2005-2018