User`s guide
Creating Graphical User Interfaces (GUIs)
22-25
Creating Graphical User Interfaces (GUIs)
Treatment of & in Menu Label Is Changed
The use of '&' (ampersand) in the uimenu 'Label' property string is changed for
cases that use the constructs 'A& B' and 'A&&B'. The changes bring these constructs
in line with the way '&' is used in other 'Label' constructs. See “Compatibility
Considerations” below for specific information.
Compatibility Considerations
Interpretation of 'Label' property strings that use the following constructs is changed:
• The string 'A& B' now produces the menu label A& B with no underlined mnemonic.
Previously, 'A& B' produced the label A_B, in which the space is a mnemonic.
• The string 'A&&B' now produces the menu label A & B with no underlined
mnemonic. Previously, 'A&&B' produced the label A&B with no mnemonic.
If you use either construct, 'A& B' or 'A&&B', in your menu labels, verify that the new
resulting label is acceptable or change the 'Label' property to a new string.
Major Documentation Revision
The MATLAB document Creating Graphical User Interfaces is reorganized and
rewritten. It now consists of three sections:
• Getting Started—Leads you through the steps needed to create a simple GUI, both
programmatically and using GUIDE.
• Creating GUIs with GUIDE—Contains the information, previously included in
Creating Graphical User Interfaces, that you need to create a GUI using GUIDE. This
section is organized in workflow order with many small examples of the various steps.
A final chapter provides advanced examples.
• Creating GUIs Programmatically—For now, this section contains a summary of the
available functions and complete code examples for three GUIs.
One GUI uses a variety of user interface controls to enable a user to calculate the
mass of an object after specifying the object's density and volume.