Previewtext Alignment. |
Post Reply |
Author | |
keepITcool
Groupie Joined: 08 April 2009 Status: Offline Points: 36 |
Post Options
Thanks(0)
Posted: 19 March 2010 at 4:41am |
Hi all.
Using 13.1 and trying to work with previewtext
.SetCustomDraw xtpCustomDrawPreviewItem
Private Sub repLic_DrawPreviewItem(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal hDC As stdole.OLE_HANDLE, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long, DoDefault As Boolean)
Item.Alignment = xtpAlignmentCenter Item.BackColor = vbBlack Item.ForeColor = vbWhite Item.Bold = True Item.Caption = "WTF?! more bugs?..." End Sub the eventhandler works somewhat.. on Populate or Redraw it doesnt work at all, but Once my mouse has moved over a columnHeader!!!!... the item.caption from the handler shows up in the report. (overwriting the original PreviewText) All other Item properties I set in the DrawPreviewItem event are ignored.
What am i doing wrong....
Jurgen
Addendum: When I click on the report event is triggered as well. Item.Caption is set Item Properties are ignored.
|
|
Xtreme :SuitePro (ActiveX) version 13.1.0
Language: VB 6.0 Platform: WinXP/Win7(32+64bit) |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Can you upload test project?
|
|
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.... |
|
keepITcool
Groupie Joined: 08 April 2009 Status: Offline Points: 36 |
Post Options
Thanks(0)
|
Following doesn't work in 13.1 nor 13.3.1. i'm sure that if that works the event will work as well. All properties of the PreviewItem other than Caption are ignored...
Private Sub Form_Load()
With ReportControl .PreviewMode = True .Columns.Add 0, "test", 200, 1
With .Records.Add .AddItem "Sara Deer" .PreviewText = "this is the default." End With With .Records.Add .AddItem "John Doe" .PreviewText = "dummy" .PreviewItem.Caption = "this must be red centered"
.PreviewItem.Alignment = xtpAlignmentCenter .PreviewItem.ForeColor = vbRed End With .Populate End With End Sub
|
|
Xtreme :SuitePro (ActiveX) version 13.1.0
Language: VB 6.0 Platform: WinXP/Win7(32+64bit) |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You are right about PreviewItem, seems to be broken somewhere... I never used this before so did set properties just to see what happens but lots of properties you can't set or doesn't seem to work???
I'm glad someone uses this and reported it in this post. 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.... |
|
keepITcool
Groupie Joined: 08 April 2009 Status: Offline Points: 36 |
Post Options
Thanks(0)
|
I'm sure you are. Sorry to be the messenger of yet another bug.
|
|
Xtreme :SuitePro (ActiveX) version 13.1.0
Language: VB 6.0 Platform: WinXP/Win7(32+64bit) |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Please keep on reporting bugs... As I said before, I don't use this option (yet) but if I will I want to be sure that everything works OK. So don't hesitate to report BUGS.
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.... |
|
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 |