get the index number of PtComboBox with phab?

Hello:
We are using QNX4.25. We have a problem using phab that we can’t get the
index number of PtComboBox? We use the property of Pt_ARG_CBOX_SEL_ITEM,but
it returns the same number whatever I chose from the PtComboBox.


Thanks
LingzheXu

Previously, jgp wrote in qdn.public.qnx4:

Hello:
We are using QNX4.25. We have a problem using phab that we can’t get the
index number of PtComboBox? We use the property of Pt_ARG_CBOX_SEL_ITEM,but
it returns the same number whatever I chose from the PtComboBox.

Here’s a piece of code I use:


unsigned short *num;
PtArg_t args[1];

PtSetArg( &args[0], Pt_ARG_CBOX_SEL_ITEM, &num, 0 );
PtGetResources( ABW_combo, 1, args );


Perhaps you aren’t sending the right type of parameter in PtSetArg()?

HTH,

  • Pete