フィルターのクリア

How to set the event priority on GUI?

1 回表示 (過去 30 日間)
Volkan Kandemir
Volkan Kandemir 2012 年 4 月 1 日
Hi everyone. Here is an basic but important question. Think about a GUI which have a textbox named as edit1 and let us add an event to this textbox by KeyPressFcn. When we press return key, KeyPressFcn will arise and gets the text of edit1. However on the same time edit1_Callback event will arise. By default KeyPressFcn event comes first. How can I change it?
By the way I solved my problem by removing KeyPressFcn event and moving both code under the event of edit1_Callback. Nevertheless, there should be property which users can manage the event priorities.

採用された回答

Walter Roberson
Walter Roberson 2012 年 4 月 1 日
There is no property to allow the relative priorities of the callbacks to be changed.
  2 件のコメント
Volkan Kandemir
Volkan Kandemir 2012 年 4 月 1 日
If so how Matlab decide which event comes first?
Walter Roberson
Walter Roberson 2012 年 4 月 1 日
It is a matter which is not defined by Mathworks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by