MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelský manuál Strana 304

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 330
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 303
12 Examples of GUIs Created Programmatically
12-26
Note The following link executes MATLAB commands and is designed to
work within the MATLAB Help browser. If you are reading this online or in
PDF, you should go to the corresponding section in the MATLAB Help
Browser to use the links.
Click here to display the main GUI M-file in the MATLAB Editor.
Subfunction Summary
The color palette example includes the callbacks listed in the following table.
Function Description
colorCellCallback
Called by
hPalettePanelSelectionChanged when
any color cell is clicked.
eraserToolCallback
Called by
hPalettePanelSelectionChanged when
the Eraser button is clicked.
hMoreColorButtonCallback
Executes when the More Colors button
is clicked. It calls
uisetcolor to open the
standard color-selection dialog box, and
calls
localUpdateColor to update the
preview.
hPalettePanelSelectionChanged
Executes when the GUI user clicks on a
new color. This is the
SectionChangeFcn
callback of the
uibuttongroup that
exclusively manages the tools and color
cells that it contains. It calls the
appropriate callback to service each of
the tools and color cells.
Zobrazit stránku 303
1 2 ... 299 300 301 302 303 304 305 306 307 308 309 ... 329 330

Komentáře k této Příručce

Žádné komentáře