You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://nl.mathworks.com/matlabcentral/fileexchange/1898-setfocus), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: clickfocus, jMouseEmu: Mouse Emulator (v2.3)
General Information
- Version 1.0.0.0 (1.97 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
