Print Page | Close Window

HowTo: BestFit & column header with an icon

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=16864
Printed Date: 13 May 2024 at 12:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HowTo: BestFit & column header with an icon
Posted By: AntiChecker
Subject: HowTo: BestFit & column header with an icon
Date 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:

ReportControl1.AutoColumnSizing = False

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



Replies:
Posted By: Aaron
Date Posted: 23 June 2010 at 11:26am
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 - 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....


Posted By: Aaron
Date Posted: 23 June 2010 at 2:53pm
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....



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