Filter löschen
Filter löschen

how to restore the original content of an edit control

2 Ansichten (letzte 30 Tage)
Krzysztof
Krzysztof am 12 Dez. 2013
Beantwortet: Walter Roberson am 12 Dez. 2013
  • When I start editing a value in an edit control and change my mind, is there a way to restore the original content? Neither Esc nor Ctrl+Z seems to work.
  • When I submit the edited value to a callback and the callback figures out that the content is invalid, is there a way to restore the original valid content (other than fiddling with UserData)?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Dez. 2013
No, the Uicontrol have no "memory". If you want to restore the content, you need to save the content before the potential modification, and then set() it back into place.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by