Using colors in a PtList

NOTE: This is the continuation of a discussion initiated in the
qdn.public.qnx4.photon newsgroup
I’m using photon 1.14 on a QNX4.25 system.

A PtList widget is a scrolling list of text items. You can easily add,
delete or modify those items using
convenience functions PtListAddItems(), PtListDeleteItems() and
PtListReplaceItems() among many others.

You can easily change the color for the entire widget changing the
Pt_ARG_COLOR resource.

My questios is how can I change the color for a single text item inside
the PtList widget? I need to have different colors
in the same PtList to do some visual grouping of the text items.

Answered in the qdn.public.qnx4.photon newsgroup.

“Joan Baucells” <“Joan Baucells”@NoSpam.es> wrote in message
news:400790CF.AC39EDA3@NoSpam.es

NOTE: This is the continuation of a discussion initiated in the
qdn.public.qnx4.photon newsgroup
I’m using photon 1.14 on a QNX4.25 system.


A PtList widget is a scrolling list of text items. You can easily add,
delete or modify those items using
convenience functions PtListAddItems(), PtListDeleteItems() and
PtListReplaceItems() among many others.

You can easily change the color for the entire widget changing the
Pt_ARG_COLOR resource.

My questios is how can I change the color for a single text item inside
the PtList widget? I need to have different colors
in the same PtList to do some visual grouping of the text items.