- List all components you'd like to disable/enable in a vector of handles. Importantly, each component must have an "Enable" properrty. If there are sections with many components that you'd like to control, place them in a uipanel. Enabling and disabling uipanels controls everything within the panel.
- Create a function within the app that contains a logical input which will disable all components when the input is False and enable them when it's tTrue.
- In callback functions that are expected to consume significant time, set the Enable propery of all selected components to Off at the top of the callback function and then set them to On at the end, or wherever you'd like the changes to occur.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/365938/image.gif)