I'm having an issue with the 'checkbox' in a GUI I'm working on. The problem is that regardless if the checkbox is marked or not, the handle always has the same value. The handle hcheckhold is always 4.0248... I need to have 2 different values! here's the code
hcheckhold = uicontrol('Style','checkbox','String','Hold',...
'Min',0,'Max',1,...
'Position',[10,10,10,10],...
'FontSize',10,'Callback',{@checkbox_Callback})
function checkbox_Callback(source,eventdata)
hcheckhold
end
Any help?
get(hcheckhold,'Value')
I pasted it inside the function and it worked perfectly,
Thanks again
G
> I'm having an issue with the 'checkbox' in a GUI I'm working on. The problem is that regardless if the checkbox is marked or not, the handle always has the same value. The handle hcheckhold is always 4.0248... I need to have 2 different values! here's the code
The problem is solved already.
Did it get clear, that the handle itself must not change its value? The handle is a unique pointer to the object, while the property 'Value' of the object can change its value.
Kind regards, Jan