friend, I think U'ven't handled the PopupTrigger Event

see, whatever u've done is abs fine.. still when U click PopUpTriggr,
1. U should disply the List.
2. User will select the item
3. Then U assign that item to PopUp Trigger Label..
file

here is a sample code for it


     else if(event->data.ctlEnter.controlID == TransferXFromAccPopTrigger)
     {
          // read from database and displaying the entries of list in
location list..
          //AccountListInit();
          // Get a pointer to the list object.
          itemIndex = FrmGetObjectIndex(frmP, TransferXfromList);
          pLst = FrmGetObjectPtr(frmP, itemIndex);
          nLocation = LstPopupList(pLst); // Popup the list..
          location = LstGetSelectionText(pLst, nLocation); // Set the label
 for the Location as per the selection.
          pPop = (ControlPtr)FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
TransferXFromAccPopTrigger));
          CtlSetLabel(pPop, location);
          handled = true;
     }

this works abs OK...
hope this will hlp U..
Rest Best in Next
MAbhijit





[EMAIL PROTECTED] on 04/02/2000 03:01:01 AM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (bcc: Abhijit Mhetre/LTITLPUN)

Subject:  POP-UP Triggers Help Please




I am trying to create a pop-up trigger/list.

I used constructor, and created a list with 3 items, and it is set to Not
Usable.
Then, I created a trigger, and made sure it IS usable, and typed in the ID
of the list.
I added some items to the list.

Yet, when I run the prc, and click on my trigger pop-up, it does not show
anything!

Any ideas?

Thanks,
Scott Szretter


--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html








-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to