Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [Solved]Hex color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Solved]Hex color

 Post Reply Post Reply
Author
Message
mar72vin View Drop Down
Groupie
Groupie


Joined: 20 September 2008
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mar72vin Quote  Post ReplyReply Direct Link To This Post Topic: [Solved]Hex color
    Posted: 27 October 2010 at 11:03pm
Hi,
I am trying to set the report controls HighlightBackColor to orange using

control.PaintManager.HighlightBackColor = 0xFFA500

When testing this out the hightlight color shows blue not orange... am I missing something?

thanks!
Product: Xtreme Report Control (ActiveX) version 15.1.3
Platform: Windows 7 (64bit)
Language: c#
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: 18 November 2010 at 2:10am
Hi,
 
You didn't miss anything... It's showing blue indeed.
Strange though, when using value (converted) hex to RGB it shows orange:  RGB(255,165,0) 
 
Maybe CJ support can enlighten us Wink
 
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
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2010 at 5:35am
in long notation it's always BGR
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: 18 November 2010 at 10:21am
Originally posted by JantjeKeizer JantjeKeizer wrote:

in long notation it's always BGR
Hi,
 
Does it also mean that all values have to be reversed? I only could get orange with &H5AFF  
 
Like this: 
FF A5 00    >>     00 5A FF
 
 
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
mar72vin View Drop Down
Groupie
Groupie


Joined: 20 September 2008
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mar72vin Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2010 at 7:11pm
Thanks Aaron and Jantje.

This works for me. ".PaintManager.HighlightBackColor = 0x00A5FF;"

I didn't need to reverse each value, just switch them to suit BGR. Seems a bit backwards but at least it works!Smile
Product: Xtreme Report Control (ActiveX) version 15.1.3
Platform: Windows 7 (64bit)
Language: c#
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2010 at 3:42am
The function RGB converts the color to OLE_COLOR, this is really BGR in Hex.
Other languages works with native RGB-hexvalues (like htm), for normal windowscontrols you have to convert to OLE_COLOR.
This is not a problem of CJ, this is default for Windows.
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.203 seconds.