David, I've been messing around with type ahead recently. I came across that as well and I seem to recall the solution was some 'regular' type ahead methodology wired up to the list box. So you'd still have the list object as a separate object on your form and move/show it when doing entry on the listbox cell. Then hide it when done. And if you want to include a 'shadow' TA object (to show what the TA completion would be if you selected it at that moment - looks like the placeholder) it's more complicated by issues of transparency and z-axis locations. Sigh.
I think we're pretty tied to this approach because of 4D's architecture but I'm frequently wrong in those assertions. I've been playing around with the idea of trying to implement TA in a text field, the way the method editor looks up method names for instance. Not really liking anything I've got yet. On Tue, Jun 27, 2017 at 2:14 AM, David Adams via 4D_Tech < [email protected]> wrote: > I might be remembering this wrong, but I thought that 4D had a built-in way > of letting you type ahead to a row in a listbox. I have a one-column > listbox based on an array and want to select items by type. Like, typing > 'ca' selects the first item starting with 'ca'. > > I messed around with the various attributes (16.1) but didn't find anything > like what I was looking for. Am I remembering something from the old-style > form arrays before listboxes? Am I missing something? > > Any help appreciated. It's not worth a ton of code, unless there's some > very generic solution available. Just to be clear, I'm not talking about > type-ahead based on an entry area, I'm talking about a listbox has focus > and you just type. The Finder does this on macOS when you type - it picks > the first matching file or folder. I don't know if there's a shorthand name > for this behavior, but it's widespread in common in the world > > Thanks! > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** -- Kirk Brooks San Francisco, CA ======================= *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

