Add listener in slider CreateFcn
Show older comments
Hi. I am trying to add listner in slider CreateFcn, but I am getting error "Unbalanced or unexpected parenthesis or bracket.". I am doing this in GUIDE.
function slider1_CreateFcn(hObject, eventdata, handles)
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
addlistener(hObject, 'ContinuousValueChange', @slider1_Callback(hObject, eventdata, handles))
Accepted Answer
More Answers (0)
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!