Pushtool Enable

Hi everybody
I have a pushbutton im my program. In pushbutton calling function , I set it's enable 'off' . My question is that , When I click on the pushbutton , it isn't set it's enable off but in debug mode it sets enable off . I didn't understand this . Please help
Thank you.
set(handles.captureButton,'Enable','off');

Answers (1)

Walter Roberson
Walter Roberson on 29 Jul 2011

0 votes

Call drawnow() after the set()

This question is closed.

Asked:

on 29 Jul 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!