Menu

#4 Small TFontComboBox bug/feature

open
nobody
None
5
2002-05-30
2002-05-30
Anonymous
No

TFontComboBox's height is based on the current font
setting.
ie: The height is 20 pixels for the font MS Sans Serif,
regular, 8

But, a standand TComboBox is 21 pixels

Its only a small error, but it looks bad when you mix the
two sizes on one dialog.

Increasing the font size to 9 does nothing. Increasing to
10 makes the combobox height 23 pixels.

POSSIBLE FIX
Change the last line of GetItemHeight in RxCombos.pas

OLD
Result := Metrics.tmHeight + 1;

NEW
Result := Metrics.tmHeight + 2;

Why was 1 added? Is it a border setting? Do we need to
get this value from

Discussion


Log in to post a comment.