
12 Examples of GUIs Created Programmatically
12-22
Color Palette
The color palette example includes these topics:
• “The Example” on page 12-22
• “Techniques Used in the Example” on page 12-25
• “View the Completed GUI M-File” on page 12-25
• “Subfunction Summary” on page 12-26
• “M-File Structure” on page 12-27
• “GUI Programming Techniques” on page 12-28
The Example
This example creates a GUI, colorPalette, that enables a user to select a color
from a color palette or display the standard color selection dialog box. Another
example, “Icon Editor” on page 12-33, embeds the colorPalette, as the child of
a panel, in a GUI you can use to design an icon.
The
colorPalette function populates a GUI figure or panel with a color
palette. The figure below shows the palette as the child of a figure.
Komentáře k této Příručce