April 19, 2024, 01:56:39 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Cell colors

Started by Brian, December 14, 2013, 05:54:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Larry,

In your IWG_SetCellColor command, I think you have the RGB colors being read as BGR,
at least in the foreground setting. I have just checked and verified this by swapping
them around, wondering why I wasn't get the colour I required. Version 0.08

Brian

LarryMc

If you use the RGB IWBasic command the order of the colors is R,G,B
If you use a hex value directly then the order of the colors is B,G,R which is how the windows API handles the color.

The RGB command converts the user decimal inputs(in RGB order) to BGR order.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Thanks, Larry - that explains it!

Brian