This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Fix ElCombox for Big Fonts-Setting

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

  • Also do same change for TCustomElListBox.UpdateItemHeight

    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;
Sign In or Register to comment.