On Friday, November 3, 2000 9:48:01 AM, Ted Trela wrote:

> Anybody know what the 'search' member controls in the ListAttrType structure
> which is part of a List.
>
>
> The documentation says:   search         If set, incremental search is
> enabled.
>
> I've searched everywhere else I can think and have seen no mention of this
> functionality.  Am I missing something here?
>
> I've not seen a way to enable this in constructor, not does poking the
> member at run time have any noticeable effects.
>
> The real problem I'm trying to solve is an interface item which allows a
> triggered llist to be searched using incremental search via graffiti with
> the ability to add items as necessary.   I pulled down some sample code from
> Palm which mates a trigger/list with a text field, and while that works, I'm
> still at a loss to implement incremental search using a list interface.  Is
> it possible?
>
>

The expense application is the best way to see this in action (I was puzzled
at one point by what this attribute was, and searched through all the Palm
examples, this is the only place I found it used).

In the expense app, create a new expense and tap on "-Expense type-". Now,
enter a "b" from Grafitti.  You'll see that "Breakfast" is highlighted.
Enter "u", you'll see that "Bus" is highlighted. Enter backspace, and it'll
go back to "Breakfast". Once you've entered a unique prefix, it'll
auto-select the item and close the list.

The feature only works if:
    The list is sorted
    The list items are available to the List manager (you don't pass NULL to
LstSetArrayChoices).
    The list is a popup

A quick look at the implementation shows a five-character buffer used.

Neil
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to