Results 1 to 4 of 4

Thread: IliTableGadget row colors

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    19

    Unhappy IliTableGadget row colors

    Hi,

    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.

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Posts
    29
    Hello paranad_g,
    The distribution includes a dedicated sample to this effect.
    Please take a look at ILVHOME/samples/dataccess/nodb/folio*

    HTH,
    Claude

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    19

    Unhappy folio example

    Hi,

    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.

  4. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    19

    Red face Thank you

    Hi,

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •