Вверх ↑
Ответов: 2125
Рейтинг: 159
#1: 2007-01-09 22:02:20 ЛС | профиль | цитата
Galkov, закинь в svn изменения:

в Win.pas

...
var ScreenDPI:integer;

implementation
...

Font.FontHeight := _prop_Font.Size * ScreenDPI div -72;

...

Control.Font.FontHeight := Size * ScreenDPI div -72;

...


procedure InitScreenDPI;
var dc:THandle;
begin
dc := GetDC(0);
ScreenDPI := GetDeviceCaps(dc,LOGPIXELSY);
ReleaseDC(0,dc);
end;

initialization

InitScreenDPI;


в hiMainForm.pas

       Font.FontHeight := _prop_Font.Size * ScreenDPI div -72;

и ещё в нескольких компонентах, где ещё стоит size+6.

карма: 1

0