How to freeze specific function with a view mode in a GUI?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Calabrese
le 25 Août 2015
Réponse apportée : Walter Roberson
le 25 Août 2015
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?
0 commentaires
Réponse acceptée
Walter Roberson
le 25 Août 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.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!