Figures-menu adaption for standalone applications

版本 1.2.0.0 (5.8 KB) 作者: Alexander Mering
Create dockable figures for standalones and disable or remove menu items from the figures container
382.0 次下载
更新时间 2012/11/15

查看许可证

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.

引用格式

Alexander Mering (2024). Figures-menu adaption for standalone applications (https://www.mathworks.com/matlabcentral/fileexchange/39026-figures-menu-adaption-for-standalone-applications), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Removed an error from the MousePressed_Callback for the DTDocumentBarButtons

1.0.0.0