setfocus
by Martin Weber
27 Jun 2002
(Updated 26 Aug 2002)
Program to set focus to objects (edit etc) without clicking with the mouse on them.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
This submission has inspired the following:
clickfocus, jMouseEmu: Mouse Emulator (v2.2)
|
| MATLAB release |
MATLAB 6.1 (R12.1)
|
| Other requirements |
Windows |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (11) |
| 24 Dec 2002 |
Yaron Keren
|
|
|
| 01 Aug 2003 |
David Abraham
|
|
|
| 24 Mar 2004 |
Brett Shoelson
|
|
|
| 19 May 2004 |
Stefan Bleeck
|
|
|
| 29 Mar 2005 |
JTB .
|
|
|
| 05 Sep 2005 |
Ralph Schleicher
|
|
|
| 21 Apr 2006 |
Anthony Beaucamp
|
|
|
| 23 Feb 2007 |
Jo Bergs
|
|
|
| 04 Oct 2007 |
Marc O Donnagain
|
|
|
| 10 Jul 2008 |
Tom N
|
|
|
| 11 Jul 2010 |
James Rao
|
|
|
| Updates |
| 06 Aug 2002 |
I noticed an error in my source file. (Typed a instead of h, line 29) |
| 23 Aug 2002 |
Inserted a drawnow after deleting the callback to update the figure data |
|
Contact us at files@mathworks.com