PropListener - add a callback to property value get/set event

版本 1.0.0.0 (2.0 KB) 作者: Yair Altman
Attach a listener callback to a property value get/set event(s)
3.6K 次下载
更新时间 2008/1/14

无许可证

This is an enhancement of Matlab's hidden and unsupported addlistener function (within the uitools folder). It attaches a listener callback to one or more property (or properties) get or set event(s).

Acceptable events are PreGet, PreSet, PostGet and PostSet, which are triggered immediately before/after a get/set event on a handle property value.

Example:
proplistener(gcf,{'Visible','NumberTitle'},{'PreGet','postSet'},@myFunc)

See more extensive help section within.

Note: relies on undocumented and unsupported Matlab functionality. Use at your own risk. Comments welcome

引用格式

Yair Altman (2024). PropListener - add a callback to property value get/set event (https://www.mathworks.com/matlabcentral/fileexchange/18301-proplistener-add-a-callback-to-property-value-get-set-event), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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