Re: [racket-users] Re: Autocomplete from a list

2019-02-17 Thread James Platt
On Feb 14, 2019, at 9:22 PM, Alex Harsanyi wrote: > There are two solutions I can think of: > > (1) derive combo-field% and override the on-popup method to construct the > choice menu dynamically based on what is selected in the combo box field. > This has a few disadvantages, namely (a) you

Re: [racket-users] Re: Autocomplete from a list

2019-02-15 Thread Greg Hendershott
If the user will choose very frequently (and you want the fastest UX), and the choices in the database don't change very frequently: It might be worth experimenting with caching the choices in memory. For auto-complete I imagine something like a trie, or whatever the latest hotness might be. The

[racket-users] Re: Autocomplete from a list

2019-02-14 Thread Alex Harsanyi
There are two solutions I can think of: (1) derive combo-field% and override the on-popup method to construct the choice menu dynamically based on what is selected in the combo box field. This has a few disadvantages, namely (a) you have to produce the menu immediately, so if you have to