Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [QUESTION] RowHeight too small to fit contents
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[QUESTION] RowHeight too small to fit contents

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: [QUESTION] RowHeight too small to fit contents
    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....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2009 at 12:10pm
Please provide your code to MeasureRow and your code for BeforeDrawEvent
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2009 at 4:59pm

try issue version please

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