how to restore the original content of an edit control
2 次查看(过去 30 天)
显示 更早的评论
- 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)?
0 个评论
采纳的回答
Walter Roberson
2013-12-12
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!