uiFlash

版本 1.0.0.0 (2.6 KB) 作者: Jan
Direct attention to UI object by short flashing
866.0 次下载
更新时间 2009/10/13

查看许可证

uiFlash: Direct attention to UI object by short flashing

A property, e.g. the BackgroundColor, of a graphic object is flashed twice to the new value and return to the original. E.g. this can be helpful to direct the user's attention to a specific UICONTROL in case of wrong input.

Example:
FigH = figure;
BtnH = uicontrol(FigH, 'String', 'Hello', 'Position', [20, 20, 60, 20]);
uiFlash(BtnH, 'BackgroundColor', [1, 0, 0])
uiFlash(BtnH, 'Position', [16, 16, 68, 28]);
uiFlash(FigH, 'Position', get(FigH, 'Position') + [0, 20, 0, 0]);

Please email me in case of problems or questions.

引用格式

Jan (2024). uiFlash (https://www.mathworks.com/matlabcentral/fileexchange/25566-uiflash), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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