IonicWind Software

IWBasic => IWGrid => IWGrid Issues => Topic started by: Brian on December 14, 2013, 05:54:52 AM

Title: Cell colors
Post by: Brian on December 14, 2013, 05:54:52 AM
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
Title: Re: Cell colors
Post by: LarryMc on December 14, 2013, 06:30:52 AM
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.
Title: Re: Cell colors
Post by: Brian on December 14, 2013, 09:07:29 AM
Thanks, Larry - that explains it!

Brian