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.

TELSideBar not rendering correctly in high DPI

Hi,

I'm trying to upgrade our application that uses the TELSideBar component as a program navigation mechanism and I'm seeing that it doesn't render correctly on a High DPI monitor situation.

Component: TElSideBar
Package:  LMD ElPack 2024.2 (10-02-2024)
IDE:  (Delphi/C++Builder 12)

I have switched over to using a TVirtualImageList for the item images and here are the results I am getting:

100% screen scaling (expected rendering):


175% Screen scaling (with rendering issues):


At this point we are using ThemeMode=ttmNone if that makes any difference (doesn't seem to if I change that).

Any help or suggestions would be appreciated.

Thanks,

John Beyer

Comments

  • Sorry..didn't realize inline images wouldn't come through.  Images attached.
  • Hi, 

    Thanks for the report. Fixed.
  • Hi Eugene,

    I've implemented your fixes (from Git) and just have one more minor request...

    I think you should also scale SectionHeight in the ChangeScale procedure.

    ...
      Spacing := MulDiv(Spacing, M, D);
      TopSpacing := MulDiv(TopSpacing, M, D);
      SectionHeight := MulDiv(SectionHeight, M, D);
    end;

    Thanks,

    John Beyer
  • You're right. Done.
Sign In or Register to comment.