Does anyone know of a TEdit-type control that doesn't descend from TWinControl? I need Calibri font size 11 and in TEdit the underlying Windows control forces a minimum height of 26 for this combination - and I need a height of 22. Alternatively if anyone knows how to override the underlying height value?

Comments

  1. T n T The problem is that for the font type/size I mentioned the underlying control has a minimum height of 26, due to padding above and below the text.
    Roland Bengtsson It's the underlying TWinControl that's enforcing the height - haven't been able to find any way to override it so far.
    Edwin Yip Win 8.1 standard display settings.

    ReplyDelete
  2. Bob Devine Did you set the AutoSize of the TEdit to false? I have no problems setting a height of 22 (or any other value) for Calibri, 11 points (after setting AutoSize to false). It keeps the height during runtime too.

    ReplyDelete
  3. Rik van Kekem Thanks - that works - can't believe I missed that!

    ReplyDelete

Post a Comment