Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Determining PtList Selection: Page 1 of 6 (6 Items)
   
Determining PtList Selection  
I am attempting to determine which item is selected in a PtList control.

I am currently using this code:
-----------------------------------
unsigned short* pnSelPos = 0;
short*                pnItem    = 0;

PtGetResource(ABW_ListBarcodes, Pt_ARG_SELECTION_INDEXES, &pnSelPos, &pnItem);
-----------------------------------

Pt_ARG_SELECTION_MODE is set to: Pt_SINGLE_MODE

It seems that *pnSelPos identifies the currently selected item.  However, when nothing is selected *pnSelPos can still 
have a value.

Can someone explain to me what *pnSelPos and *pnItem represent in this context and if there is another way to retrieve 
which item is currently selected if any?

Thank you,
Kendall