How to freeze specific function with a view mode in a GUI?

1 view (last 30 days)
I have created a GUI that I use plot data, select sections and process selections. Later I look at the processed data and notice occurrences that need further evaluation. I would like to be able to put my GUI into a view mode with the press of a button that disables a few functions, primarily the function that saves the processed data. Is there a way to write a function that disables other functions from use?

Accepted Answer

Walter Roberson
Walter Roberson on 25 Aug 2015
set(AnAppropriateHandle, 'enable', 'off')
and later
set(AnAppropriateHandle, 'enable', 'on')
Side note: 'enable' can also take on the value 'disable' in some cases. If you have a uicontrol() of style 'edit' then if you set its 'enable' property to 'disable' then the field will become not editable but it will still be scrollable and will not be dimmed. This is a way to create a scrollable read-only text area. If you were to set 'enable' to 'off' then the area would be dimmed and it would not be possible to scroll it.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps 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!