Scott,
If you are in a popselect event, the data members of popselect are as
follows: (direct from Palm's Reference)
controlID = Developer-defined ID of the resource.
controlP = Pointer to the control structure
(ControlType) of the popup trigger object.
listID = Developer-defined ID of the popup list
object.
listP = Pointer to the list structure (ListType) of
the popup list object.
selection = Item number (zero-based) of the new list
selection.
priorSelection = Item number (zero-based) of the prior list
selection.
I haven't found these to always be correct values, so I often use the
following function
LstGetSelection((ListPtr)GetObjectPtr(ListID));
(You could replace (ListPtr)GetObjectPtr(ListID)) with listP from the
popselect event)
(**Note: GetObjectPtr is a standard function included with the base project
created by CodeWarrior. I am not sure if it is included with any other
development tools. Here it is if you need it...)
------------------------
static VoidPtr GetObjectPtr(Word objectID)
{
FormPtr frmP;
frmP = FrmGetActiveForm();
return (FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, objectID)));
}
------------------------
--
Jeremy Griffith,
Web Master/Web Applications Developer (http://www.gradebook.com)
Excelsior Software, Inc. (970) 353-8311
[EMAIL PROTECTED]
Where ListID is the ID to the list your popup initiated
"Scott Brooks" <[EMAIL PROTECTED]> wrote in message
news:59277@palm-dev-forum...
>
> Hey Guys,
>
> How do I capture which item the user has selected from a popup list
> (initiated by a trigger)???
>
> An example would be great. I looked on the KB, but all I found was
special
> popup functions.
>
> Thanks,
> Scott
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/