Mert SaÄlam wrote:
> I want to make a menu that opens when I long tap on an item.
> How can I generate or handle long tap event?
Luc already answered this part.
> How can I set a lists coordinates dynamically?
Just pop up the list manually instead of associating it
with a pop-up trigger:
Int16 selecteditem;
LstSetPosition (listptr, x, y);
LstSetSelection (listptr, noListSelection); // or item number
selecteditem = LstPopupList (listptr);
if (selecteditem == -1)
{
// nothing selected
}
else
{
// an item was selected, and selecteditem is its index in the list
}
LstPopupList() even handles saving and restoring the part of the screen
that is drawn on by the list.
- Logan
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/