
12 Examples of GUIs Created Programmatically
12-24
- Displays the selected color in the preview area.
- The red, green, and blue values for the newly selected color are displayed
in the R, G, and B fields to the right of the preview area.
- Causes
colorPalette to return a function handle that the host GUI can
use to get the currently selected color.
2 Clicking the Eraser button, causes colorPalette to return a value, NaN, that
the host GUI can use to remove color from a data point.
3 Clicking the More Colors button displays the standard dialog box for setting
a color.
Calling the colorPalette Function
You can call the colorPalette function with a statement such as
mGetColorFcn = colorPalette('Parent',hPaletteContainer)
Komentáře k této Příručce