Image display goes wrong |
Post Reply |
Author | |
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
Posted: 17 September 2010 at 11:20am |
Hi
Up to 13.3 I displayed 64 x 64 pixel images with:
ReportControl1.Icons.AddImage Picture1.picture, i+1000,xtpImageNormal,False
Item.Icon = i+1000
Since 13.4 that doesn't work. 16 x 16 pixel is no problem, but larger doesn't show anymore. The row height was not changed.
Do I miss something?
Thanks for help
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Fabian,
I tried same but the row is autosized to full size image, don't have to change rowheight. With V13.3.1 and V13.4 both work as should. Would it be different and I have to add code which I didn't have to in previous versions, it would a bug and I wouldn't add SOLVED to my post because accidentally some event exists, to resize row
Is it possible to upload test project which shows your problem?
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.... |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Hi Aaron
The problem goes deeper as I thought.
If you allow MeasureRow by ReportControl1.SetCustomDraw xtpCustomMeasureRow AND YOU DO NOTHING in this event - it works. As soon as you doesn't allow this event to fire, images >16 pix wan't show
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Fabian,
Do you need MeasureRow event? If not, just set wndReportControl.PaintManager.FixedRowHeight = False
If you do need event, I guess you have to calculate height of image. I don't know if this is by design, better ask support
Good luck
|
|
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 Fabian,
Looking at it again... If you allow RC to calculate rowheight depending on it contents (FixedRowHeight = False) Icon is showing OK, but if you decide to measure row yourself and calculate rowheight to small, RC doesn't show Icon. Suppose you want measure rowheight yourself and RC still forces rowheight to fit Icon then you would be right!!!
So I believe it is implemented correctly
Setting FixedRowHeight = False is best option to allow RC calculate rowheight automatically.
|
|
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.... |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Hi Aaron,
Thanks for looking at this 'feature'. But I have set RC.PaintManager.FixedRowHeight=False. But the behaviour is as described (v13.4).
Have a nice week end
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Fabian,
I don't know why it doesn't work for you? I attached test project that works OK for me.
Try to (during runtime)
|
|
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.... |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Thanks Aaron for your effort. Yes you are right. If I set FixedRowHeight = False AFTER loading the icons it works. If I set it before loading data this property has no effect.
Regards
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Fabian,
I put (with my test project) the line: wndReportControl.PaintManager.FixedRowHeight = False on a lot of different places, it ALWAYS works OK So I'm curious where and when it fails.
Please show me your code when it fails or change my test project and upload it inhere again.
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.... |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Hi Aaron,
RC.PaintManager.FixedRowHeight=False
RC.SetCustomDraw xtpCustomBeforeDrawRow
DOES NOT WORK
RC.SetCustomDraw xtpCustomBeforeDrawRow RC.PaintManager.FixedRowHeight=FalseWORKS (tested with your sample, v3.4)
Regards
Fabian |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Fabian,
Now I see what you are doing "wrong"
You have wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow and not xtpCustomMeasureRow If xtpCustomMeasureRow is enabled, MeasureRow event is fired and you are able to set Height manually.
OK, I agree that this is strange and should be looked at, or at least mentioned in the help file if this is by design. I'm glad you found this "bug"
Thanks for that, I will add this to my list.
|
|
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 |