ComboBox item_pos vs item_len using Photon1.14 Runtime

I’m having a problem getting the item_pos of combo widgets using photon 1.14
runtime, the value in Pos is item_len instead of item_pos.
int Pos;
PtListCallback_t* cbi=(PtListCallback_t *)cbinfo->cbdata;
Pos = cbi->item_pos;

I have generated the GUI using appbuilder 1.11 and it works fine under
Photon1.10,1.11,1.12. I tried generating under appbuilder 1.14 and it still
gives item_len for Photon 1.14 and also doesn’t work for older versions of
Photon.

Any Ideas?

Hello Greg

I’m having trouble reproducing this problem here. Can you give me some more information such as which callback you are calling this in.

Thanks
Rod

Previously, Greg Polhamus wrote in qdn.public.qnx4.photon:

I’m having a problem getting the item_pos of combo widgets using photon 1.14
runtime, the value in Pos is item_len instead of item_pos.
int Pos;
PtListCallback_t* cbi=(PtListCallback_t *)cbinfo->cbdata;
Pos = cbi->item_pos;

I have generated the GUI using appbuilder 1.11 and it works fine under
Photon1.10,1.11,1.12. I tried generating under appbuilder 1.14 and it still
gives item_len for Photon 1.14 and also doesn’t work for older versions of
Photon.

Any Ideas?

Rod, I am using text changed, I will try others (Others didn’t work).
Additionally a user
suggested I use PtGetResources. This had a different side effect. It
works under 1.14 but you have to choose the item twice in older versions
to
get the correct item_pos.

Thanks, Greg

<gui@qnx.com> wrote in message news:Voyager.010221154402.614442A@rdowdall…

Hello Greg

I’m having trouble reproducing this problem here. Can you give me some
more information such as which callback you are calling this in.

Thanks
Rod

Previously, Greg Polhamus wrote in qdn.public.qnx4.photon:
I’m having a problem getting the item_pos of combo widgets using photon
1.14
runtime, the value in Pos is item_len instead of item_pos.
int Pos;
PtListCallback_t* cbi=(PtListCallback_t *)cbinfo->cbdata;
Pos = cbi->item_pos;

I have generated the GUI using appbuilder 1.11 and it works fine under
Photon1.10,1.11,1.12. I tried generating under appbuilder 1.14 and it
still
gives item_len for Photon 1.14 and also doesn’t work for older versions
of
Photon.

Any Ideas?
\