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 Why aren't my flag changes being used in PtSetArg()?
Ref. No. QNX.000006293
Category(ies) Development
Issue My application displays a trend, using the RtTrend widget.  I use the following code to set the properties of the trend widget.

PtSetArg( &arg[0], Rt_ARG_TREND_FLAGS, x09Rt_TREND_HORIZONTAL | Rt_GRID |
Rt_TREND_LEFT_TO_ RIGHT | x09x09Rt_GRID_IS_TRANSLUCENT, 0 );
PtSetResources(ABW_baseTrend, 1, arg);

Why isn't the grid displayed?

Solution You're not setting the flags properly.  When setting flags, the last parameter is your bit mask.  Here is a simple example:
PtSetArg( &args[0], Pt_ARG_FLAGS, Pt_SET | Pt_HIGHLIGHTED, Pt_SET | Pt_HIGHLIGHTED );