| Creating Graphical User Interfaces (GUIs), MATLAB Version 7.5 (R2007b) Release Notes | ![]() |
New features and changes introduced in this version are:
In previous releases, adding toolbars to a GUI had to be done programmatically, by writing code for the uitoolbar, uipushtool and uitoggletool functions. GUIDE now has a Toolbar Editor and an associated Icon Editor that allow you to lay out a toolbar for a GUI and populate it with standard predefined tools for printing, saving, panning, zooming, annotating, etc. or with custom tools that you design yourself. You can draw or modify an icon for any tool on your toolbar with the Icon Editor or import one from an image file.
When you run GUIDE to create a new GUI or edit an existing one, click the Toolbar Editor icon in the Layout Editor Toolbar or choose Toolbar Editor from the Tools menu to open the Toolbar Editor. To add tools to the toolbar of your GUI, you drag standard or custom tool icons to the toolbar layout area at the top. You can modify a tool's properties using the Toolbar Editor and Property Inspector. You can also create and customize icons for tools using the new Icon Editor, described next. You control the behavior of a tool in your toolbar with its ClickedCallback (and for toggle tools, their OnCallback and OffCallback) in the GUI's associated M-file. If you use an existing tool, such as Print or Save, you do not need to modify its callback; it is predefined as %default.
The Icon Editor lets you customize the icons for existing tools or create entirely new icons. Icons are stored as CData for each tool, and can also be read from and saved to .icn files. The Icon Editor also includes a Color Editor, a palette you can use for picking predefined colors and defining new ones.
The GUIDE Layout Editor now has two fields in its lower left corner that continuously provide numeric feedback for:
Current Point — The cursor location within the layout window
Position — The Position property of the currently selected object(s) in the layout window
Both measurements are given in pixels, regardless of the current Units settings for GUI objects. When multiple objects are selected, any elements of their Position properties that are not identical are read out as MULTI. The readouts help you to precisely size and align GUI components.
A new documentation section, Making Multiple GUIs Work Together, has been added to illustrate how multiple GUIDE GUIs can work together by sharing data to create a more complicated GUI. It first summarizes the techniques that GUIDE GUIs can use to share data with one another. It then steps through two examples, accompanied by their M-files and FIG-files, to show how to use those techniques for specific tasks.
| Function Name | What Happens When You Run the Function? | Use This Function Instead | Compatibility Considerations |
|---|---|---|---|
| axlimdlg | Errors | None | No replacement |
| cbedit | Errors | guide | Use the guide command instead |
| clruprop | Errors | rmappdata | Replace existing instances of clruprop with rmappdata |
| ctlpanel | Errors | guide | Use the guide command instead |
| edtext | Errors | Set the editing property on the text object | No replacement |
| extent | Errors | Get the extent property of the text object | No replacement |
| getuprop | Errors | getappdata | Replace existing instances of getuprop with getappdata |
| hthelp | Errors | web | Replace existing instances of hthelp with web |
| layout | Errors | None | No replacement |
| matq2ws | Errors | None | No replacement |
| matqdlg | Errors | None | No replacement |
| matqparse | Errors | None | No replacement |
| matqueue | Errors | None | No replacement |
| menubar | Errors | Set the menubar property of the figure to none | No differences |
| menuedit | Errors | guide | Use the guide command instead |
| pagedlg | Errors | pagesetupdlg | Replace existing instances of pagedlg with pagesetupdlg |
| setuprop | Errors | setappdata | Replace existing instances of setuprop with setappdata |
| umtoggle | Errors | Set the Checked property of uimenu objects | No differences |
| wizard | Errors | guide | Use the guide command instead |
| ws2matq | Errors | None | No replacement |
![]() | Graphics and 3-D Visualization, MATLAB Version 7.5 (R2007b) | External Interfaces/API, MATLAB Version 7.5 (R2007b) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |