MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 109

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 108
GUI Options
see the GUIDE examples “Panel” on page 8-38 and “An Address B ook Reader
(GUIDE)” on page 10-81. Also see the example “Using Panel Containers in
Figures Uipanels”, w hich does not use GUID E.
Command-Line Accessibility
You can restrict access to a GUI figure from the command line or from a code
file with the GUIDE Com mand -line accessibility options.
Unless you explicitly specify a figure handle, many commands, such as
plot,
alter the current figure (the figure specified by the root
CurrentFigure
property and returned b y the gcf command). The current figure is usually
the figure that is most recently created, drawn i nto, or mouse-clicked. You
can programmatically designate a figure
h (where h is its handle) as the
current figure in four ways:
1 set(0,'Curre ntFigure',h) —Makesfigureh current, but does not
change its visibility or stacking with respect to other figures
2 figure(h) —Makesfigureh current, visible, and displayed on top of other
figures
3 axes(h) Makes existing axes h the current axes and displays the figure
containing it on top of other figures
4 plot(h,...), or any plotting function that takes an axes as its first
argument, also makes existing axes
h the current axes and displays the
figure containing it on top of other figures
The
gcf function returns the handle of the current figure.
h = gcf
For a GUI created in GUIDE, set the Command-line accessibility option
to prevent users from inadvertently changing the appearance or content
of a GUI by executing commands at the command line or from a script or
function, such as
plot. The following table briefly describes the four options
for Comm and-line accessibility.
5-11
Vue de la page 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 758 759

Commentaires sur ces manuels

Pas de commentaire