View Full Version : IliTableGadget row colors

06-07-2013, 04:41 AM

I,m using a IliTableGadget and want to change the background of different rows to different colours, but the only thing i could do was to change the whole table background cell. I write down my code.

IliTableGadget * _tab;
_tab->setCellForeground( getDisplay()->getColor("Green") );//This change the foreground of all cells.

What i want is to change only a row color.

Please could anyone help.

Thank you.

06-07-2013, 05:15 AM
Hello paranad_g,
The distribution includes a dedicated sample to this effect.
Please take a look at ILVHOME/samples/dataccess/nodb/folio*


06-07-2013, 05:32 AM

Yes you are right, i had already took a look to it, but is useless for my case.

The example makes the raw palette change automatically by using a symbol callback.

What i need is to change the row colour when it,s filled by the source coude program. I only know the coulor to be assigned when i,m just to fill the row.

Please any help.

Thank you.

06-10-2013, 04:59 AM

You were right. The example was enough to develop what i wanted.

What confused me was that i did not get easily when the callback of the example MyGetCellPaletteCallBack was called.

Thank you very much.