Code Request: TypeAhead for Virtual List Control

Hi all (and happy new year),

Having just converted some wxListCtrls in my app into virtual list controls,
I've realised that this loses the Type Ahead Search* feature that Windows
(and other os?) helpfully gives you by default.

As I plod away knocking up my own one and begin to tear out my hair (so many
edge cases, how do I reverse engineer the behaviour that windows gives me,
etc...) I wonder if:

a) there is some magic switch / class / mixin already there that I can use.
b) anyone has already written something to do this for virtual list controls
and:
   i) they could give me some pointers
   or
   ii) they'd be willing to share it

If not, then whatever I knock up I shall happily donate to the cause (stick
it on the wiki?).

Cheers

Muz

* in case this isn't what real/more experienced GUI developers call it, what
I mean is that if you type "don" when the list has focus it will scroll to
and select the first item with a label that starts with "don".

···

___________________________________________________
Murray Steele
Software Engineer
___________________________________________________
APR Smartlogik Ltd
Rustat House * Clifton Road * Cambridge * CB1 7EJ
Reception: +44 (0) 1223 271 000
Fax: +44 (0) 1223 271 010
www.aprsmartlogik.com
Map: www.aprsmartlogik.com/contact/CambridgeMap.pdf
murray.steele@aprsmartlogik.com

***********************************************************************
This e-mail may contain proprietary and confidential
information and is intended for the recipient(s) only.
If an addressing or transmission error has misdirected this
e-mail, please notify the systems administrator by forwarding
this e-mail to mailto:postmaster@aprsmartlogik.com.
If you are not the intended recipient(s) disclosure, distribution,
copying or printing of this e-mail is strictly prohibited.
***********************************************************************

Murray Steele wrote:

Hi all (and happy new year),

Having just converted some wxListCtrls in my app into virtual list controls,
I've realised that this loses the Type Ahead Search* feature that Windows
(and other os?) helpfully gives you by default.

As I plod away knocking up my own one and begin to tear out my hair (so many
edge cases, how do I reverse engineer the behaviour that windows gives me,
etc...) I wonder if:

a) there is some magic switch / class / mixin already there that I can use.

Not that I know of.

b) anyone has already written something to do this for virtual list controls
and:
   i) they could give me some pointers
   or ii) they'd be willing to share it

If not, then whatever I knock up I shall happily donate to the cause (stick
it on the wiki?).

Yes, that would be a good place for it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!