Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by