Pop-up menu option for each cell of a column for a uitable in matlab GUI
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello. I want to have a pop-up menu option for each cell of a column for a uitable in matlab GUI, from where I can choose the cell input from a variety of string values from a list. How can I do this? Kindly explain the steps in detail as I am completely new to GUIDE programming.
0 comentarios
Respuestas (1)
Walter Roberson
el 21 de Nov. de 2017
When you construct the uitable, set the ColumnFormat property of that table to be a cell array of character vectors, one entry for each possible string.
Note: it is not possible to have a different set of strings pop up for each row in the uitable (at least not without using java): all the rows will have exactly the same possibilities.
For example,
p = uitable('ColumnEditable', [true true], 'ColumnFormat', {'numeric', {'First Choice', 'Second', 'Another'}}, 'data', {5 'Second'})
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!