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 Creating a PtIcon without using the application builder
Ref. No. QNX.000009724
Category(ies) Development
Issue The PtIcon widget can be used to display an program icon on the photon desktop manager and the task bar. Is there a way to use PtIcon without the application builder, e.g. create the widget directly from code?
Solution The PDM icon must be a PhAB icon.  There's no way for PDM to find out that you're creating an icon from code -- PDM does not run your code.  PDM just reads the executable and looks for a PhAB-style icon in it.

To put a PDM icon in a non-PhAB application, just create a dummy PhAB app and then use the "bindres" utility to add the icon module to your non-PhAB executable.  No code required.