On Mon, 18 Mar 2013 18:50:23 +0000 Graeme Geldenhuys <[email protected]> wrote:
> On 2013-03-18 16:39, Jürgen Hestermann wrote: > > What I just found is that this is influenced by the Windows font size > > settings. > > It is "big" on my machine and "normal" on the machine at work. > > If I change it to normal on my machine everything looks okay. > > Do you mean this too? > > Yes, that is exactly what I meant. Kylix (and I believe Delphi) had a > DPI setting stored in the form file (*.xfm). This was then used to > automatically scale the form and its content if another system had a > different DPI value. That does not work well, because of rounding errors and different fonts/themes. > Incidentally, this is also why popular toolkits like GTK2+, Qt and Java > have layout managers - the prevent such dip issues with great ease. Yes, layout managers are a solution, although IMO "great ease" is an exaggeration. > How this is handled in LCL is beyond me. I think I say a article in the > wiki, where somebody developed 2-3 functions ScaleDpi() etc that helps > with this problem. It wasn't perfect, but much better than nothing. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
