gui uitable choice list linkage

1 Ansicht (letzte 30 Tage)
han han
han han am 17 Sep. 2019
Beantwortet: Walter Roberson am 17 Sep. 2019
How can I write uitable like this?
For example, when the left field is 2, the menu for 5 and 6 can be displayed on the right.
When the left field is selected 1, the menu for 3 and 4 can be displayed on the right.
Different field values are required to correspond to values of different fields.
擷取.JPG
012.jpg

Antworten (1)

Walter Roberson
Walter Roberson am 17 Sep. 2019
This cannot be done with a uitable for traditional figures.
uitable for traditional figures implement menus by setting the entry for ColumnFormat to be a cell array of character vectors. Then the individual cell entry for the contents must be a scalar integer that is the index of into the cell array of character vectors. Because it is the same reference cell array each time, it is not possible to have one row activate one menu and a different row activate a different menu.
Perhaps you could get somewhere with the Java level described by Yair in undocumentedmatlab.com

Kategorien

Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by