MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador Página 569

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 759
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 568
Create Menus for a Programmatic GUI
Note After you have created all menu items, set their HandleVisibility
properties off by executing the following statements:
menuhandles = findall(figurehandle ,'type','uimenu');
set(menuhandles,'HandleVisibility', 'off')
See “Program Menu Items” on page 12-34 for information about programming
menu items.
Add Context Menus to a Programmatic GUI
Context menus appear when the u ser right-clicks on a figure or GUI
component. Follow these steps to add a context menu to your G UI:
1 Create the context menu object using the uicontextmen u function.
2 Add menu items to the context menu using the uimenu function.
3 Associate the context menu with a graphics object using the object’s
UIContextMenu property.
Subsequent topics describe commonly used context m enu properties and
explain e ach of these steps:
“Commonly U sed Properties” on page 11-81
“Create the Context Menu Object” on page 11-82
“Add Menu Items to the Context Menu” on page 11-83
“Associate the Context Menu with Graphics Objects” on page 11-84
“Force Display of the Context Menu” on page 11-86
Commonly Used Properties
The m ost commonly used properties needed to describe a context menu object
are shown in the following table. These properties apply only to the menu
object and not to the individual menu items.
11-81
Vista de página 568
1 2 ... 564 565 566 567 568 569 570 571 572 573 574 ... 758 759

Comentários a estes Manuais

Sem comentários