Lazarus

Programming => General => Topic started by: flori on March 29, 2020, 06:47:35 pm

Title: design
Post by: flori on March 29, 2020, 06:47:35 pm
Hi everyone. I have a small software, wich I made lazarus 1.8, but when I installed the new lazarus 2.0.6  I get tangled forms, fonts.
 
 
Does anyone know why ?
Im attached 2 pic .
THX
Title: Re: design
Post by: marcov on March 29, 2020, 06:51:11 pm
Check of the font names of the original form are the same.
Title: Re: design
Post by: flori on March 29, 2020, 06:56:21 pm
Yes. I checked it. put everything back together
Title: Re: design
Post by: jwdietrich on March 29, 2020, 07:52:25 pm
You might also want to check font metrics. font.size and font.height are different concepts that may occasionally generate characters of equal size, but this may change with different versions of the LCL, the operating system, the platform and even the user's settings. Make sure to consistently use either font.size or font.height.

See https://wiki.lazarus.freepascal.org/Font (https://wiki.lazarus.freepascal.org/Font) for reference.
Title: Re: design
Post by: flori on March 29, 2020, 08:23:24 pm
unfortunately the whole thing is slipped apart >:( >:( >:(
Title: Re: design
Post by: kupferstecher on March 29, 2020, 11:06:00 pm
Perhaps your system has a DPI-scaling other than 100%?
After Lazarus 1.8 the DPI-scaling was introduced for design time (and unfortunately is enabled by default).
It can be deactivated in the IDE settings.
Title: Re: design
Post by: flori on April 03, 2020, 07:08:16 pm
Where is the DPI? :(
Title: Re: design
Post by: flori on April 03, 2020, 07:10:40 pm
?? I set all fonts default!!!! >:( >:( >:( >:(
Title: Re: design
Post by: wp on April 03, 2020, 10:59:01 pm
Please calm down and stop showing us these angry smileys. It not clear to me from reading the scarce description what is the problem. Is there an issue with scaling? LCL scaling works very well - Lazarus is the best proof for this statement.

Here is my recipe for scaling, I wrote some cross-platform applications recenty they work fine with it:
Please study the attached demo which scales perfectly. Maybe I should mention also that there is the component TChemText in OPM, which was designed for displaying chemical formulas (at the expense of a slight centering error due to the higher control) and was used in the Win7-screenshot
Title: Re: design
Post by: flori on April 04, 2020, 03:46:53 pm
ok thank you. Sorry I'm a research biologist!
I did not study programming at university!!!!
The problem was LCL!  ;)
Title: Re: design
Post by: wp on April 04, 2020, 05:22:00 pm
No need to be sorry. I am a physicist and did not study programming either. It's just a matter of not giving up.

You say the problem was "LCL". What do you mean? The "LCL scaling" checkbox?
Title: Re: design
Post by: flori on April 06, 2020, 06:46:13 pm
Yes. LCL check was inactive. Just work :) thank you friend
TinyPortal © 2005-2018