High DPI ListBox ItemHeight

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37814
    Stephane Senecal
    Participant

    In Delphi 7, a TListBox does not scale the ItemHeight based on the DPI.

    In a TListBox with Style to lbStandard, the ItemHeight will be calculated by the OS based on the font size.

    But the TsListBox overrides that standard style with ONWERDRAWFIXED.

    In that case, the OS does not calculate the ItemHeight anymore.

    In more recent versions of Delphi, they scale the ItemHeight by overriding the procedure ChangeScale.

    Could it be possible to add the overriding of this procedure under Delphi 7?

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57862
    Support
    Keymaster

    Hi!

    I will try to improve it in the nearest release.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.