autocomplete question - Printable Version +- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum) +-- Forum: Programming in yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=1) +--- Forum: Help with programs (https://yab.orgfree.com/forum/forumdisplay.php?fid=4) +--- Thread: autocomplete question (/showthread.php?tid=49) |
autocomplete question - clasqm - 01-23-2016 Is there a way to clear the autocomplete list? I know I can turn it off, but what if I want to clear the list and start with a new one? I am tinkering with my text editors Trope and Rondel, feeding in a UK English wordlist for autocompletion, but what if my user suddenly decides that US English is more suitable? I can tell the user to save the file, close the editor and start over, but that is not very satisfactory. I would prefer to clear out all the UK English terms and feed in my US English (or French, or German) list. RE: autocomplete question - bbjimmy - 01-23-2016 (01-23-2016, 02:55 PM)clasqm Wrote: Is there a way to clear the autocomplete list? I know I can turn it off, but what if I want to clear the list and start with a new one? place your textedit on a view that can be removed ( no menu or shortcuts) and remove the view, then re-add the view and textedit. This short example uses the Reset button to remove the autocomplete for the textedit. Note: there is no code to save the text of the textedit. Code: #!yab RE: autocomplete question - clasqm - 01-24-2016 (01-23-2016, 11:04 PM)bbjimmy Wrote: [q Ah, thanks. That will probably give a little flickering on a slow machine, but I can live with that. /facepalm Why did't I think of that? RE: autocomplete question - lelldorin - 01-29-2016 I just use a textfile for the autocomplete function, clear the file and redraw the textedit should be run. |