
12 Examples of GUIs Created Programmatically
12-8
Introduction
This chapter provides three examples that illustrate the application of certain
techniques in programmatically created GUIs.
• “GUI with Axes, Menu, and Toolbar” on page 12-9
• “Color Palette” on page 12-22
• “Icon Editor” on page 12-33
Each example lists the techniques it illustrates. These techniques include:
• Creation of a dialog that does not return until the user makes a choice
• Passing input arguments to the GUI when it is opened
• Obtaining output from the GUI when it returns
• Shielding the GUI from accidental changes
• Running the GUI across multiple platforms
• Making a GUI modal
• Sharing data among multiple GUIs
• Creating menus and context menus
• Creating toolbars
• Using an external utility function
• Achieving proper resize behavior
The examples all use nested functions. For information about using nested
functions, see Nested Functions in the MATLAB documentation.
Commenti su questo manuale