[Lazarus] Labels and Font size

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 19 08:55:32 CET 2013


On Tue, 19 Mar 2013 07:53:29 +0100
Sven Barth <pascaldragon at googlemail.com> wrote:

>[...]
> It would at least be nice (if it doesn't exist already) that a readonly
> DesignDPI property is added to the forms and frames? For a WinCE
> application where I need to support different DPIs I'm hardcoding my own
> DPI value into the code, but this will break if a colleague should edit or
> add one form/frame on a computer with different DPI settings... So it would
> be nice if I could rely on the form/frame telling me in which DPI setting
> it was last edited...

Forms are often just opened to look something up. Then a tiny wag and
the form is modified and will be saved. So this DPI property will
change often, polluting the vcs diffs.
This property should be optional.

One solution is to define a TForm descendant with this property.
Once this is registered in the IDE, existing forms can be easily
changed.

Mattias




More information about the Lazarus mailing list