[Pharo-users] Text Field With Entry Completion Via Tab
nicolaihess at web.de
Tue Oct 6 13:35:52 EDT 2015
2015-10-06 15:56 GMT+02:00 Sean P. DeNigris <sean at clipperadams.com>:
> With all the new tools - Spec, Brick, Tx, etc - what is the easiest way to
> this in Pharo 4.0? I don't have a preference for the tool as long is it
> works in Morphic.
> My naive attempt failed:
> applicants := PaPerson list collect: #name.
> entryCompletion := EntryCompletion new
> dataSourceBlock: [ :currText | applicants ];
> filterBlock: [ :currApplicant :currText | currApplicant
> includesSubstring: currText asString asUppercase ].
> TextInputFieldModel new
> acceptOnCR: false;
> entryCompletion: entryCompletion;
> The completion menu appears, but is seems you can only accept the selected
> completion via the mouse - yuck!
you can select an entry with arrow up/down and the enter key should accept
> View this message in context:
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-users