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

  • 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 314
Icon Editor
12-37
The example also includes the helper functions listed in the following table.
M-File Structure
The iconEditor is programmed using nested functions. Its M-file is organized
in the following sequence:
1 Comments displayed in response to the help command.
2 Data creation. Because the example uses nested functions, defining this
data at the top level makes the data accessible to all functions without
having to pass them as arguments.
hCancelButtonCallback
Executes when the user clicks the
Cancel push button.
hIconFileButtonCallback
Executes when the user clicks the
Icon file push button . It calls
localUpdateIconPlot.
Function Description
localEditColor
Changes the color of an icon data point to the
currently selected color. Call the function
mGetColorFcn returned by the colorPalette
function. It also calls
localUpdateIconPlot.
localUpdateIconPlot
Updates the icon preview. It also updates the axes
when an icon is read from a file.
processUserInputs
Determines if the property in a property/value pair
is supported. It calls
localValidateInput.
localValidateInput
Validates the value in a property/value pair.
prepareLayout
Makes changes needed for look and feel and for
running on multiple platforms.
Function Description
Zobrazit stránku 314
1 2 ... 310 311 312 313 314 315 316 317 318 319 320 ... 329 330

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

Žádné komentáře