作者gdpeter1118 (阿呆)
看板MATLAB
标题[讨论] 如何找到checkbox的value
时间Mon May 5 23:24:37 2014
小弟利用gui介面按button的function 创了一个checkbox,
但是我要按另一个按钮的时候,他却一直说找不到这个function.....
想请问该怎麽办?
function pushbutton1_Callback(hObject, eventdata, handles)
handles.check=uicontrol('Style','checkbox','Position',[30 50 80
20],'String','15611541');
function pushbutton4_Callback(hObject, eventdata, handles)
h = get(handles.check,'String');
set(handles.text1,'String',h);
ERROR Reference to non-existent field 'check'.
最後目标是做动态的checkbox 数量和位置原本都好了,却发现无法呼叫,因此想
请教各位大大。 Q_Q
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.114.53.167
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/MATLAB/M.1399303480.A.2EA.html