Is it possible to prevent an uitable popup menu from popping up? Or: How to get a callback by clicking a cell, returning the row & column index?

后端 未结 3 638
悲哀的现实
悲哀的现实 2020-12-10 16:15

For an user interface I\'m programming an uitable. The user chooses an option A,B or C in the first column and the suboption in the second colu

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 17:04

    The solution is to use the Cell Selection Callback with two UITables in your GUI. Make the first table hold the data of {'a','b','c'} then in the cell selection callback, make the second UITable visible and set its data based on the cell selection properties of the first UITable. This link should have everything you need if you look down at the line 'A little hack not needing findjobj'

    http://www.mathworks.com/matlabcentral/newsreader/view_thread/306392

提交回复
热议问题