QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Custom Widget Resource initial values |
Ref. No. |
QNX.000009936 |
Category(ies) |
Development |
Issue |
We want to initialize a widget class data structure to the values found in a palette file, or to the values assigned from within PhAB.
Hou do we do this? |
Solution |
It actually works the other way. The widget does not need to know anything about the PhAB stuff. The purpose of having the default values in the palette file is to tell PhAB how the default function is initializing the widget. PhAB needs the default to decide whether the value you have set for a widget is the same as the default or needs to be changed. At runtime, the application library uses PtSetResources() to apply the resources whose value differs from the default -- widget code does not need to care where the calls are coming from. |
|