Modifying smartlist to also filter on midstring matches?

  • Thread starter Thread starter germanwbauer
  • Start date Start date
G

germanwbauer

Hi:

Any fast solutions on how I could modify or subclass the smartlist to
not only match against the beginning of an item text string but also
midstring. For example the built-in contacts shows "Lastname,
Firstname" by default and matches against either the beginning of the
last and the first name. I would like to do the same in my app. I
assume the fastest would be to have it match against either the first
chars of the string or have it find ", " and then the subsequent chars
to get a match.

Any clues where to get started are appreciated,
Thanks,

German
 
IMO, you'd need to modify at least 2 methods:
FilterItems - the place that actually compares the strings
DrawTextSelected - where the drawing of the selected item is happening.

There could be some more tweeks required to handle the situation when some
items would have the last and first name selected and the items where it's
just either one is selected.

HTH... Alex
 
Back
Top