Print Page | Close Window

[QUESTION] RowHeight too small to fit contents

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=13929
Printed Date: 21 May 2024 at 1:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [QUESTION] RowHeight too small to fit contents
Posted By: Aaron
Subject: [QUESTION] RowHeight too small to fit contents
Date Posted: 06 April 2009 at 5:41am
Hi,
 
Sometimes the rowheight isn't large enough to fit contents of ReportItem caption. I tried to resize row in MeasureRow event but it still doesn't work properly. When making rowheight bigger contents will be sized as well so other items don't fit (so this isn't going to solve anything)
 
 
 
 
 
Thanks
 
 
 


-------------
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....



Replies:
Posted By: mdoubson
Date Posted: 11 April 2009 at 12:10pm
Please provide your code to MeasureRow and your code for BeforeDrawEvent

-------------
Mark Doubson, Ph.D.


Posted By: Aaron
Date Posted: 12 April 2009 at 7:50am
Hi,
 
As I was creating this test project I realized what is causing this behaviour. Well, height of ReportItem isn't properly calculated when Metrics.Text is used and/or an image assigned to Metrics.Icon. Also when Metrics.Font.Bold = True you will see a lot of times that rowheight isn't resized properly... 
 
Look at test project and check option "Use Metrics in BeforeDrawRow event" to see difference...
 
https://forum.codejock.com/uploads/20090412_074558_TestMetrics.zip - uploads/20090412_074558_TestMetrics.zip
 
Thank you
 


-------------
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: mdoubson
Date Posted: 12 April 2009 at 10:54am

Does not see any difference running your project under current pre-release activex, in both cases (checkbox on and off) all properly drawing and resizing in non-bold font case. NO HEIGHT PROBLEMS HERE.

In Bold case - width properly calculated but height - not. Will care about it

Btw - setting: wndReportControl.PaintManager.FixedRowHeight = False or True does not change anything in run


-------------
Mark Doubson, Ph.D.


Posted By: Aaron
Date Posted: 13 April 2009 at 3:09am
Hi,
 
Easy way to reproduce the issue:
 
Just resize form width until minimum width
 
 
  and only resize formheight (and check: use Metrics...)    See difference now?
 
 
So, Metrics doesn't work same way.
 
Thanks
  
 


-------------
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: mdoubson
Date Posted: 13 April 2009 at 4:59pm

try issue version please



-------------
Mark Doubson, Ph.D.



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