Print Page | Close Window

BUG: BestFit() cuts caption

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=23603
Printed Date: 17 December 2018 at 2:44am


Topic: BUG: BestFit() cuts caption
Posted By: mgampi
Subject: BUG: BestFit() cuts caption
Date Posted: 09 March 2018 at 2:39am
Hi;

I use the XT 18.3 report control in tree mode.
I set up the tree column this way:
CXTPReportColumn* Column=Report_.AddColumn(new CXTPReportColumn(0, _T(""), 300));
Column->SetAutoSize(FALSE);
Column->SetBestFitMode(xtpColumnBestFitModeAllData);
Column->SetMinWidth(300);
Column->GetEditOptions()->m_bSelectTextOnEdit=TRUE;
Column->GetEditOptions()->m_nMaxLength=65;
Column->SetTreeColumn(TRUE);

After data is loaded or when an item is expanded or collapsed I call this code:
Report_.GetReportHeader()->AllowColumnResize(TRUE);
Report_.GetReportHeader()->BestFit(Report_.GetColumns()->GetAt(0));
Report_.GetReportHeader()->AllowColumnResize(FALSE);

But then the largest caption of one of the items is always cut off.
See here:


Is this a bug?
When not, how can I see the item's whole text? If you check the grayed selection in above screenshot you can see that there's enough space left to the right of the item...


-------------
Martin

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.5.0
Platform: Windows 8.1 (64bit)
Language: VC+



Print Page | Close Window