GNU八度按钮

问题描述 投票:0回答:1

如何通过单击内部的按钮隐藏面板?参见下面的代码:

f = figure;
p = uipanel ("title", "HELLO WORLD", "position", [.2 .2 .75 .75]);
c = uicontrol ("parent", p, "string", "HELLO.", "position", [150 10 100 20]);

我正在寻找的是将关闭面板的那条线。

octave
1个回答
0
投票

您需要为uicontrol编写一个回调函数,该函数在单击按钮时将Visibleuipanel属性设置为off

有关更多详细信息,请参见uipanel propertiesuipanel上的文档。

© www.soinside.com 2019 - 2024. All rights reserved.