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
URL: http://forum.codejock.com/forum_posts.asp?TID=23539
Printed Date: 20 April 2024 at 4:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


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.



Replies:
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.

Regards,
 Oleksandr Lebed



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net