MATLAB: Avoid interruptions in the callbacks for several controls

callbackguiinterruptible

I am building a GUI programmatically. In order to have data consistency, I want that all the uicontrol's don't interrupt a previously running callback function. In order to achieve so, I modify each uicontrol as:
set(hdl, 'BusyAction','cancel', 'Interruptible','off');
I want to configure all the uicontrol's at once. But there are not default value, like with the Units (DefaultUIControlUnits). Besides, they don't inherit this property from the parent control. Thus, is there any elegant way to do it?

Best Answer

set( findobj( 'Type', 'uicontrol' ), 'Interruptible', 'off' )
Related Question