MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guía de usuario Pagina 494

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 759
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 493
11 Lay Out a Programmatic GUI
Create Figures for Programmatic GUIs
In MATLAB software, a GUI is a figure. B efore you add components to it,
create the figure explicitly and obtain a handle for it. In the initialization
section of y our file, use a statement such as the following to create the figure:
fh = figure;
where fh isthefigurehandle.
Note If you create a component when there is no figure, MATLAB software
creates a figure automatically but you do not know the figure handle.
When you create the figure, y ou can also specify properties for the figure. The
most commonly used figure properties a re shown in the following table:
Property Values Description
MenuBar
figure
, non e.Defaultis
figure.
Display or hide the MATLAB
standard menu bar menus.
If
none and there are no
user-created menus, the
menu bar itself is removed.
Name
String Title displayed in the figure
window. If
NumberTitle is
on,thisstringisappendedto
the figure number.
NumberTitle
on
, off.Defaultison.
Determines whether the
string ’Figure
n' (where
n is the figure number) is
prefixed to the figure window
title specified by
Name.
Position
4-element vector: [distance
from left, distance fro m
bottom,width,height].
Size of the G UI figure and
its location relative to the
lower-left corner of the
screen.
11-6
Vista de pagina 493
1 2 ... 489 490 491 492 493 494 495 496 497 498 499 ... 758 759

Comentarios a estos manuales

Sin comentarios