![]() |
[Solved]Hex color |
Post Reply ![]() |
Author | |
mar72vin ![]() Groupie ![]() Joined: 20 September 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() 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# |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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
![]() 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.... |
|
![]() |
|
JantjeKeizer ![]() Groupie ![]() Joined: 12 February 2008 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
in long notation it's always BGR
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
mar72vin ![]() Groupie ![]() Joined: 20 September 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
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! ![]() |
|
Product: Xtreme Report Control (ActiveX) version 15.1.3
Platform: Windows 7 (64bit) Language: c# |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |