Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Using images in tree items
Ref. No. QNX.000009887
Category(ies) Development
Issue We know that we can use images in tree items, but how do we select them?
This should be based on which items have the 'on/off' property.

How do we attach the images? Can they be created in PhAB?

Solution If you want to select images, choose an unused item flag and use the Pt_ARG_TREE_IMGMASK resource.

To create images in PhAB you need some code to attach the images to the widget. If you have them as an array of PhImage_t's, use the Pt_ARG_TREE_IMAGES resource to attach it to the widget. If you have a bunch of individual PhImage_t structures(e.g. widget database), use the PtTreeAddImages() function to add each to the widget.