From: "Jay" <[EMAIL PROTECTED]>
Subject: Pop-Up Trigger


> I have a Pop-Up Trigger with a list of items. I was wondering if anyone
> knew of some code that allowed me to click an item in the pop-up and
> have it grab it's text. I know how to take a string / charptr and display
it,
> but I can't seem to get the text from the list.

Have you tried anything like this in your MainFormHandleEvent?

case popSelectEvent:
  if ( eventP->data.popSelect.controlID == YourPopTrigger )
  {
    selection = LstGetSelection( listP );
    if ( selection != noListSelection )
      itemTextP = LstGetSelectionText( listP, selectionNum );
    handled = true;
  }
  break;


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to