Alan Ingleby wrote: > > 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...
Ah, but you see, incremental search is available only for popup lists (I'm not sure what the rationale is for that restriction), and you can't roll your own for those, because there's no means to intercept List events... > 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"? Unfortunately not. I think the lack of ability to use incremental search with lists that have a null itemsText pointer is one reason why it's so rarely used. If it were used more often, more users would know about it, more users would expect it, and more developers would be encouraged to use it, ad infinitum. :) > 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. Exactly my point; for huge lists, you often don't want to use LstSetListChoices because you're retrieving the strings from somewhere else, and you don't want to deal with the extra memory requirements and management. Hence, the system /ought/ to be able to accept a callback so that it can retrieve the text to a list item whenever it needs to. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
