Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - PreviewItem TextColor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PreviewItem TextColor

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

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: PreviewItem TextColor
    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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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