How can I make a push button in a uitable?

30 ビュー (過去 30 日間)
Thomas
Thomas 2019 年 2 月 13 日
コメント済み: Dinanath Lad 2020 年 9 月 7 日
I have a uitable and I want to put a push button in one cell of each row of table with a callback for each one.
1.Can I do that?
2.If yes, how?

採用された回答

Kevin Phung
Kevin Phung 2019 年 2 月 13 日
There is a callback property for the uitable called 'CellSelectionCallback'
which will trigger a function each time you select a cell.
uit = uitable('CellSelectionCallback',@cellpush)
%then you can just define your function
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 2 月 13 日
Note that there is no direct way to put a push button into a uitable. You might be able to hack it with Java, but the only component that uitable() supports is checkbox (with no specific callback for checking or unchecking the box)
Dinanath Lad
Dinanath Lad 2020 年 9 月 7 日
How to define function?
Is 'uit' that you defined a variable ?
for example, after clicking a perticular cell from table, i want to to open an another respective app window.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by