确实MATLAB允许uicontrol按钮在uitable被放置在细胞内? [英] Does MATLAB allow a uicontrol button to be placed within a cell in a uitable?

查看:526
本文介绍了确实MATLAB允许uicontrol按钮在uitable被放置在细胞内?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欲放置uicontrol按钮uitable的每一排。 MATLAB是否有这种情况的本地功能,或者我需要使用Java / HTML?

I want to place a uicontrol button in each row of a uitable. Does MATLAB have the native functionality for this, or do I need to use Java/HTML?

推荐答案

据我所知,使用标准的MATLAB这是不可能的。您可以使用 CellSelectionCallback CellEditCallback uitable 在一起与 MouseClickedCallback 的相应 uitablepeer 来提供标准的表格单元一个类似按钮的功能。请参见此线程关于 MouseClickedCallback 。

As far as I know, this is not possible using standard MATLAB. You can use the CellSelectionCallback and CellEditCallback of the uitable together with the MouseClickedCallback of the corresponding uitablepeer to provide a button-like functionality for standard table cells. See this thread for more infor on the MouseClickedCallback.

这是更简单的方法可能是正确使用Java表从一开始,如果你的设置允许的情况。

An easier way is probably to use Java tables right from the beginning if your setup allows it.

这篇关于确实MATLAB允许uicontrol按钮在uitable被放置在细胞内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆