setfocus
Version 1.0.0.0 (1.97 KB) by
Martin Weber
Program to set focus to objects (edit etc) without clicking with the mouse on them.
5.2K Downloads
Updated
26 Aug 2002
No License
Set focus to objects. When starting a Matlab GUI it is normally not possible to activate the cursor in an edit object. Before you can type, you'll have to click with the mouse in the edit field. With setfocus it is possible to activate the cursor with program code by passing the object handle to setfocus. setfocus simply simulate a mouseclick in the area of the object.
Cite As
Martin Weber (2026). setfocus (https://uk.mathworks.com/matlabcentral/fileexchange/1898-setfocus), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12.1
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: clickfocus, jMouseEmu: Mouse Emulator (v2.3)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
