-- 
jagadeesh chandra prasad
[EMAIL PROTECTED] - email
(714) 507-3803 x7346 - voicemail/fax



---- "Gabriel Covert" <[EMAIL PROTECTED]> wrote:
> If I have a pointer to a popup trigger, how can I get a pointer to
> it's
> associated list?
> 
> Thanks!
> 
> Gabriel Covert
> 
>
  hi Gabriel, 
> u can get the pointer of list to  which it is associated to ur popup
trigger by applying this code.

   //To get the pointer for popup                        
  popptr = 
(ControlPtr)objectPtrform,popidPopTrigger);
//To get the pointer for list                    

ListPtr=GetObjectPtr(form, ListidList);
//To get selected item from the list
no = event->data.popSelect.selection;
LstSetSelection(ListPtr,no);
LstDrawList(ListPtr);
//To set the label on popup                 
CtlSetLabel( popptr, LstGetSelectionText (ListPtr,LstGetSelection(ListPtr)));
           

   I think it works for u.
  
 --jagadeesh
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> 

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


-- 
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