"James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Alan Ingleby wrote: > > > > "James" wrote: > > > > > > If there is a simple way to have incremental-search with the existing > > > API without passing the actual text to LstSetListChoices, please > > > elaborate. > > > > Can you please clarify what you mean by incremental search. > > http://www.palmos.com/dev/support/docs/palmos/List.html#1042652 > http://www.palmos.com/dev/support/docs/palmos/PalmOSGlueLib.html#1393337
Ahh... Ok. Yes, the API is never going to give you that functionality... If you have a call in your code which will return the text for a given index, it's not hard to get this functionality anyway. I have this feature in many of my custom-drawn lists, and support it by having a "lookup..." field at the bottom of the screen. (Kind of like the addressbook (That addressbook uses tables, not lists IIRC, but the idea's the same))... It works well, and requires a fairly small amount of code... I have to admit that I've never noticed (or missed) the incremental search feature before. I can't think of any users that would even know about this ability... I presume if you enable this feature for a suitably set up list, that the user has no visual cues about this ability being "turned on"? Much nicer to roll-your-own when you think a user will benefit from the feature... All of my dynamic lists can then use the same "boilerplate" code... Besides, if you want incremental search, your list is probably going to be pretty huge, so trying to manage it with ListSetListChoices is going to be nasty. Alan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
