| PreviewItem TextColor
 
 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=19788
 Printed Date: 31 October 2025 at 7:25am
 Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
 
 
 Topic: PreviewItem TextColor
 Posted By: jpbro
 Subject: PreviewItem TextColor
 Date Posted: 20 May 2012 at 11:02pm
 
 
        
          | I'm trying to give PreviewItem text a different forecolor, and it works by setting PreviewItemColor, except when a row has focus, then the text is always HighlightRowForecolor. I've got HideSelection = True, and I've set the Highlight and SelectedRow fore & backcolors to the same as Forecolor and Backcolor, so I don't need the PreviewItem color to change from what I've set in PreviewItemColor ever. 
 I've also tried setting Item.Forecolor in DrawPreviewItem, but it doesn't help (yes, I've called SetCustomDraw with DrawPreviewItem)
 
 Is there anyway to get the PreviewItem forecolor to be the same whether or not the row has focus/is selected?
 
 
 
 
 -------------
 Product: Xtreme SuitePro (ActiveX) version 16.2.6
 Platform: Windows XP - SP3
 
 Language: Visual Basic 6.0 SP6
 
 
 |  
 
 Replies:
 Posted By: jpbro
 Date Posted: 20 May 2012 at 11:14pm
 
 
        
          | I can determine that the PreviewItem is being drawn in BeforeDrawRow because the Item.Index = -1, but setting Metrics.Forecolor doesn't have an effect if the row is selected. 
 
 
 -------------
 Product: Xtreme SuitePro (ActiveX) version 16.2.6
 Platform: Windows XP - SP3
 
 Language: Visual Basic 6.0 SP6
 
 
 |  
 
 |