Print Page | Close Window

[solved] BUG: Header Font Width Calculation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
Printed Date: 23 March 2019 at 11:31pm

Topic: [solved] BUG: Header Font Width Calculation
Posted By: MacW
Subject: [solved] BUG: Header Font Width Calculation
Date 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.

Posted By: MacW
Date 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?

Posted By: olebed
Date 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.

 Oleksandr Lebed

Print Page | Close Window