How can a background color for grid cells be set to anything apart from the standard colors shown in the documentation.
I've seen this done in grid cell based forms and have so far not been able to figure this out.
It works for setting cell->backColor to 'green, 'black, 'white etc. but I would like to use rgb or color palette numbers
Anyone know the secret to this?
see the example code in <cdsroot>/share/pcb/examples/skill/form
the files are fgrid.il/fgrid.form
load fgrid,il and then type gridtest
In reply to fxffxf:
Thats the example I've been looking at,but it does not show using rgb color codes for setting the background color of a cell.
I've tried cell->backColor = '(100 100 100) without any luck, I've also tried passing color palette results with no luck
I've tried on 16.6s006 and 16.6s008
In reply to Ejlersen:
Grid color supports a set of predefined colors (e.g. 'yellow 'red 'green etc) or Allegro design colors. Allegro design colors require the allegro color number which corrosponds to a rgb value stored in the Allegro database (see axlFormColorize and axlColorDoc for more info). It doesn't support the ability to assign abitrary rgb values to a cell.
Yes, you're correct - it works with the 'background option on colorize - thanks for pointing me in the correct direction for doing this when initializing the form instead of when I created the cells.