no. the way i did it uses the treo launch codes.
if i use the standard PhoneNumberLookupCustom() then it works fine but
then it only displays one define lookup field eg: Home where as the below
code lets you select from all the voice numbers.
here is the lookup function for the treo
DmSearchStateType searchState;
UInt16 cardNo;
LocalID dbID;
UInt32 result;
Char *textP = "Phone lookup",
*addP = "Add";
AddrLookupParamsType params;
SysNotifyParamType notify;
AddrHsLookupUserDataType data;
MemSet(¶ms, sizeof(params), 0);
params.pasteButtonText = addP;
params.title = textP;
params.field1 = addrLookupSortField;
params.field2 = addrLookupVoicePhones;
params.field2Optional = true;
params.userShouldInteract = true;
params.formatStringP = "^voicephone";
data.version = 0;
data.useMultiFilter = false;
notify.notifyType = addrAppNotificationHsLookup;
notify.notifyDetailsP = ¶ms;
notify.userDataP = &data;
// launch the contact app and pass the parameters
if (!DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication, sysFileCAddress, false, &cardNo, &dbID))
SysAppLaunch(cardNo, dbID, 0, sysAppLaunchCmdNotify, ¬ify,
&result);
----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 25, 2004 10:29 AM
Subject: Re: contact lookup not working on T650
> At 11:03 AM 11/25/2004, you wrote:
> >hi,
> >
> >my contacts lookup code isnt working on the Treo650
> >anymore. anyone else have this problem or why it has changed?
>
> Does it work on other devices that use the new PalmOne PIM databases like
> the Tungesten T3 or Zire 72?
>
>
> -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
> "Combee on Palm OS" weblog: http://palmos.combee.net/
> Developer Fourm Archives: http://news.palmos.com/read/all_forums/
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/