How to get the handle of a selected object?

5 ビュー (過去 30 日間)
Csaba
Csaba 2014 年 4 月 1 日
コメント済み: per isakson 2014 年 4 月 2 日
I have made a GUI with 42 (14x3) editable text objects to input numbers. Rather than having 42 callback functions I have made a matrix of 14x3 handles. Using this matrix I can set all the properties of any preselected editable text object.
However, if the user clicks on one of the objects and enters something I am lost, I do not know which object has been selected, although, depending on the content, I want to make changes on the object (let's say changing the background color if the user hits a special key after entering a number).
Is there any way to get info about the object which was selected? It would be nice to have a function giving back the handle of the selected object.
Csaba

採用された回答

per isakson
per isakson 2014 年 4 月 1 日
  2 件のコメント
Csaba
Csaba 2014 年 4 月 2 日
Thank you very much. How long I was looking for it in the help!!! (Sometimes one got crazy. :-) )
Csaba
per isakson
per isakson 2014 年 4 月 2 日
I know that feeling. Sometimes it is as if you need to know its name to find the function.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArgument Definitions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by