Code covered by the BSD License  

Highlights from
uiFlash

Be the first to rate this file! 1 Download (last 30 days) File Size: 2.64 KB File ID: #25566
image thumbnail

uiFlash

by Jan Simon

 

13 Oct 2009

Direct attention to UI object by short flashing

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Compatible with at least Matlab 6.5 to 7.8
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui Jan Simon 14 Oct 2009 11:51:15
flash Jan Simon 14 Oct 2009 11:51:15
blink Jan Simon 14 Oct 2009 11:51:15
attention Jan Simon 14 Oct 2009 11:51:15
highlight Jan Simon 14 Oct 2009 11:51:15
uicontrol Jan Simon 14 Oct 2009 11:51:15

Contact us at files@mathworks.com