Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [solved] BUG: Header Font Width Calculation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] BUG: Header Font Width Calculation

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: [solved] BUG: Header Font Width Calculation
    Posted: 13 January 2018 at 3:44am
After switching to v 18 (18.2) I noticed that right-alighted text in report control headers is now cut off.
The text "Count" in the example below should fit without problems into the available column width.



I see similar problems in panel captions, where text that would fit easily inside the caption is cropped and shown with an ellipsis.



This indicates that there are still font width calculation problems on high-DPI screens (150% scaling in my case).

I have reported these issues via the new "bug report email" workflow but so far nothing has happened. Any idea what to change in your code to get this working again. My customers are bugging me and I csan only tell them that Codejock is working on it. Or not.
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2018 at 8:25am
Any comment on this?

My bug reports are not answered (I'm a paying customer).
Forum posts are not answered.

Is codejock still in business?
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2018 at 2:55pm
Hello MacW,

Of course we are still in business Smile
I have fixed this issue. It was introduced on adding HighDPI support in ReportControl.

Problem in method  CXTPReportPaintManager::DrawColumn()

rcText.DeflateRect(XTP_DPI_X(3), 0, XTP_DPI_X(3), 0);
should be replaced with
rcText.DeflateRect(XTP_DPI_X(2), 0, XTP_DPI_X(2), 0);

I couldn't find your support ticket about this issue. Please write it's number.

Regards,
 Oleksandr Lebed
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.