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: 1198
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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.125 seconds.