Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: BestFit() cuts caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: BestFit() cuts caption

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1057
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: BestFit() cuts caption
    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+
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.