multi-line edit box behaving as single line

3 vues (au cours des 30 derniers jours)
André
André le 24 Oct 2019
Modifié(e) : André le 24 Oct 2019
Hello all,
I created an edit box. I want it to have 2 lines, but behave if it has only a single line. In other words, I want to:
  • The edit box should not pass to the next line when I press ENTER. It should instead lose focus and execute the callbacks.
  • When I fill an entire line, it shoud pass to the next line and not keep moving to the right.
Is there any way to accomplish this?
In fact, the standard way to pass to the next line in these situations is using SHIFT+ENTER. However, It seems MATLAB doesn't want to follow this universal rule.
Regards,
André

Réponses (0)

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by