Saul A
|
Newbie - how to get index of a combo box?
|
Saul A
11/18/2010 5:37 PM
post75238
|
Newbie - how to get index of a combo box?
With a combo box, I can set the index of item like this:
PtSetResource( ABW_blablablaCombo, Pt_ARG_CBOX_SEL_ITEM, index, 0 );
Works like a charm.
But cannot get the selected index back ?!
long *pn;
PtGetResource( ABW_blablablaCombo, Pt_ARG_CBOX_SEL_ITEM, &pn, 0 );
This returns a pointer to some big value, which is not the index. No error.
Sorry for a stupid newbie question.
If someone can point me to a better documentation or sample code for widgets, will be very grateful.
Perplexed...
- S.
|
|
|