|
|
| File Information |
| Description |
DIR2MENU populates a menu by selectively replicating a folder structure. The menu's callbacks are populated with handles to the functions in the target folders.
Examples:
H=DIR2MENU(PARENTDIRECTORY)
H=DIR2MENU(PARENTDIRECTORY, OPTIONS)
PARENTDIRECTORY is the folder to be replicated
OPTIONS (if supplied) is a cell array of menu properties that will be passed by DIR2MENU to the MATLAB uimenu function when it is called.
H points to the created figure or uicontextmenu.
As the menu is created dynamically at run time, DIR2MENU removes the need to edit a GUI when a new function is added to an application. They can be added instead by using the system directory/file manager and the folder/file naming convention described in the online help. |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 19 Oct 2006 |
DIR2MENU now adds items to and/or replaces items in a standard MATLAB figure menu. This gives access to the standard "Desktop" and "Tools" functions for example, including figure docking |
| 01 Nov 2006 |
Bug Fix. |
| 20 Nov 2006 |
Fix fix |
| 11 Dec 2006 |
Now includes support for external libraries/toolboxes.
Evals replaced with function handles |
| 10 Jan 2007 |
Now also supports uicontextmenu creation |
| 19 Jan 2009 |
Accumulated minor improvements/fixes |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com