HowTo: BestFit & column header with an icon |
Post Reply |
Author | |
AntiChecker
Newbie Joined: 25 May 2010 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 21 June 2010 at 5:27pm |
Hi,
I'm trying to BestFit a column whose column header contains an icon, but I cannot figure it out how to correctly do it. Before adding columns to the ReportControl, it has been set as follows:
The result of the BestFit from a column whose column header (caption = "CSC") does not contain an icon, is as follows (it displays the caption "CSC" completely, which IS OK): The result of the BestFit from a column whose column header (caption = "CSC") contains an icon, is as follows (it displays the icon in the column header, but it does not display the caption "CSC" completely, which is NOT OK): Any ideas how to BestFit a column whose column header contains an icon, that is, display the icon in the column header AND display the caption "CSC" completely? Thank you for your help. AntiChecker |
|
Product: Xtreme SuitePro (ActiveX) v13.4.0
Platform: Windows XP Professional (32bit) - SP 3 Language: Visual Basic 6.0 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Yes you are correct, BestFit doesn't calculate columnwidth correct with an icon. I will add it to my list https://forum.codejock.com/forum_posts.asp?TID=16309, thanks
The only thing you can do for now is setting a MinimumWidth for that column.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
After some investigation I found that Bestfit works if you don't set wndReportControl.PaintManager.DrawSortTriangleStyle = xtpReportDrawSortTriangleAlways and the SortIcon is already present in the column (if sorticon isn't visible bestfit doesn't calculate width the right way)
Maybe this will help support to find the problem
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |