if statement asking if an addlistener() event has occured
1 回表示 (過去 30 日間)
古いコメントを表示
Is there a way to write an if statement that says something like:
if % addlistener(handles.Edit1, 'String','PostGet',f) occured %do something end
0 件のコメント
採用された回答
Sean de Wolski
2012 年 5 月 21 日
I don't really understand why you would want to do this. The purpose of the listener is to fire when something (some event) happens. Why then do you need an if()? When this something happens, the listener will fire and your if() will happen automagically.
13 件のコメント
Walter Roberson
2012 年 5 月 22 日
Your handles must have been associated with a different figure number I guess.
Sean de Wolski
2012 年 5 月 22 日
or improperly GUIDATAed (new verb!). That is why I avoid GUIDATA like the plague.
その他の回答 (1 件)
参考
カテゴリ
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!