Please Change Implementation for TElComboListBox.UpdateItemHeight to
procedure TElComboListBox.UpdateItemHeight;
var tm : TLMDTextMetric;
begin
if not FCombo.ForceItemHeight then
if not (FCombo.Style in [csOwnerDrawFixed, csOwnerDrawVariable]) then
begin
LMDGetTextMetrics(Canvas.Handle, tm);
FItemHeight := tm.tmHeight;
Perform(LB_SETITEMHEIGHT, 0, FItemHeight);
end;
end;
Comments
procedure TCustomElListBox.UpdateItemHeight;
var
tm: TLMDTextMetric;
begin
if not (Style in [lbOwnerDrawFixed, lbOwnerDrawVariable]) then
begin
LMDGetTextMetrics(Canvas.Handle, tm);
FItemHeight := tm.tmHeight;
Perform(LB_SETITEMHEIGHT, 0, FItemHeight);
end;
end;