Figures-menu adaption for standalone applications
by Alexander Mering
12 Nov 2012
(Updated 15 Nov 2012)
Create dockable figures for standalones and disable or remove menu items from the figures container
|
Watch this File
|
| File Information |
| Description |
As pointed out by Yair Altman in his very popular blog (http://undocumentedmatlab.com/), accessing the java properties of a figure window allows for making figures being dockable even in standalone applications. Unfortunately, the figures container contains menu items (Plot Browser, Figure Palette and Property Editor) which directly lead to crashes of the whole application.
To overcome this shortcoming, a function is supplied which removes the problematic (or unwanted) menu entries from the figures container. This is achieved by using a property change listener for the docking state of the figure. For this purpose, a figure creation functions is used for setting the listener as well as all other properties of the figure.
Additionally, a short test case is provided.
|
| MATLAB release |
MATLAB 7.13 (R2011b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 Nov 2012 |
Removed an error from the MousePressed_Callback for the DTDocumentBarButtons |
|
Contact us