[Lazarus] New high DPI features in 1.7

info at voiceliveeditor.com info at voiceliveeditor.com
Sat Dec 10 02:16:34 CET 2016


Just got latest svn 53624, The change does indeed help in that the form in 
not resized.
However when I compile, I am getting
Project Raised exception class 'EREADError' with message,
error reading xxx.designtimedpi: unknow property:'DesignTimeDPI'

This is when compiled with or without debugger, and when app launched 

If I click ok/continue a few times; then application is auto terminated.

>> My forms load, then get scaled.
>> I have checked property of form and Scaled is unchecked False;
>> PixelsPerInch=72
>> DesignTimePPu=72
>> The scaling makes my form hard to read and even harder to edit; I am 
>> using 3rd party controls and some fonts are not scaled.
>> How can I disable this feature, I have my own scaling routines that 
>> manipulate the controls and underlying fonts etc at runtime and scale 
>> perfectly, also my scaling routines also auto add extra controls as the 
>> screen area increases.
>> I like the idea for a new project; but I would need this de-activated to 
>> continue developing current and previous applications.
>> Question why are my forms scaling when opening them, even though they 
>> were not designed for this feature. This is scarey.
> Because your system uses 72 PPI. Unfortunately the IDE uses 96 PPI as 
> default for legacy projects and thus scales it. I see it as major issue 
> and I'll come up with a solution.

Does r53623 help you? Forms with Scaled=False shouldn't be automatically
scaled in designtime - that was obviously a mistake from myself.

Lazarus mailing list
Lazarus at lists.lazarus-ide.org

More information about the Lazarus mailing list