I have a question regarding the "incremental search" function for lists.

By setting the search attribute of a list, I was able to get the
expected behavior in lists that were sorted ALPHABETICALLY.  However,
when I tried this on lists that were NOT sorted alphabetically (and
contained mixed-case list items), I got some strange behavior.  

This "strange" behavior included skipping over some items that should
have been selected, and selecting other items too soon (e.g. when there
are other items with the same first few letters later in the list).  Let
me give an example.

Here's a hypothetical list:

amp
amo
diclo
clox
ceph
clin
Cec
Lev
Lor
Van
Cip
Cef

When I enter "c" I get "clox" highlighted.  Then I enter "e" and "Cec"
gets selected (even though there is another item that starts with "ce",
mainly the last item -- "Cef").  That's the example of selecting an item
too soon.

The skipping behavior concerns the third item in the list -- "diclo" 
When I generate a grafitti "d", the item does not get selected.

So finally the question:

-Does anybody have the implementation rules (or the actual code) for the
incremental search function?
-If I should need to write my own search function, how would I do that? 
In particular:
-which events should I be looking for in order to make sure I am
currently in an open list?
-How would I find out if there are grafitti strokes & process them?
-How can I write this function so that the normal list behavior still
occurs (e.g. scrolling, etc)?

Any help will be appreciated.

APJ

Arek

-- 
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