Hi,
I am retrieving the list id associated with a popup trigger and am wondering
how portable the code is?
It works fine on POSE using Palm OS v3.1 and v3.3.
Thanks,
Chris
Chris Yourch
RIA Group
[EMAIL PROTECTED]
Int16 GetPopupTriggersListId(
UInt16 formID,
UInt16 triggerID) // popup trigger control id.
{
Int16 listID = -1;
FormPtr pForm = FrmGetFormPtr(formID);
ASSERT(pForm);
if (pForm)
{
// I hope this is portable between OS versions!
FormObjListType *frmObjs = pForm->objects;
for (Int16 i = 0; i < pForm->numObjects; i++)
{
if (frmObjs[i].objectType == frmPopupObj)
{
if (frmObjs[i].object.popup->controlID == triggerID)
{
listID = frmObjs[i].object.popup->listID;
break;
}
}
}
}
return listID;
}
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/