![]() |
[QUESTION] RowHeight too small to fit contents |
Post Reply
|
| Author | |
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Topic: [QUESTION] RowHeight too small to fit contentsPosted: 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.... |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2009 at 12:10pm |
|
Please provide your code to MeasureRow and your code for BeforeDrawEvent
|
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
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...
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.... |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
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.... |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2009 at 4:59pm |
|
try issue version please |
|
![]() |
|
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 |