3

I have a Matlab GUI that needs a high time to execute some callback functions. Besides, these functions include the following code:

 drawnow('expose');
 pause(handles.data.delay);

I want to avoid that those callback executions get interrupted in order to avoid data inconsistency if the user presses other buttons. Thus, I modify the figure settings as:

set(handles.figure, 'BusyAction','cancel', 'Interruptible','off');

However, the callbacks are still interrupted. How can I avoid it?

Note: I think that the problem is that I need to propagate the 'BusyAction' and 'Interruptible' values to all the controls in my GUI, is there any way to do it automatically? Like, for example, modifying the default value before generating the GUI.

1
  • More info can be found here Commented Feb 20, 2013 at 11:06

1 Answer 1

3

The fastest and cleanest way to propagate any property to all UI objects is with findobj:

set(findobj('Type','uicontrol'), 'BusyAction','cancel', 'Interruptible','off');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.