How can I implement tab completion or auto complete in an edit text field in my GUI in MATLAB 7.8 (R2009a)?

9 views (last 30 days)
I am looking for a way to use tab completion or auto completion in an edit text field in my GUIDE generated GUI.
I want to define a default list of strings that should be searched to complete my partial input string. Completion could either be triggered by pressing TAB, or maybe even automatically after entering 3 or 4 characters like it can be done in a browser.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The ability to do use tab completion in edit text fields is not available in MATLAB 7.8 (R2009a).
To work around this issue. You might want to implement your own functionality, storing the default strings in a cell array and using the KeypressFcn of the edit box to listen for TAB key press events. Then you would want to compare the partial string of the current input in the edit box with the strings listed in your default list and apply the found string (if any) to the edit box.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!