Figure Window Always on Top
by John Anderson
04 Oct 2005
(Updated 14 Dec 2005)
Avoid obscuring figure windows by ensuring they always remain on top.
|
Watch this File
|
| File Information |
| Description |
My first attempt at a mex file making a simple call to the "SetWindowPos" function in the user32 library. This allows users to keep MATLAB figures on top, floating above all other windows even when focus is not on the target window.
Example ...
figure(1);
winontop('figure 1');
Tested on MATLAB Version 7.0.4.365 (R14) Service Pack 2 running under Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2) |
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
| Other requirements |
note : this version is compiled under matlab 7.1.0 producing a mexw32 file, see http://www.mathworks.com/access/helpdesk/help/techdoc/rn/r14sp3_external_upgrade.html |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (9) |
| 07 Oct 2005 |
Robert Bemis
|
|
|
| 20 Oct 2005 |
Bogdan Nuna
|
|
|
| 11 Dec 2005 |
Ryan Ollos
|
|
|
| 17 Mar 2006 |
Russell Wyeth
|
|
|
| 09 Jun 2006 |
Valentin Kuklin
|
|
|
| 21 Nov 2007 |
Andrea Tagliasacchi
|
|
|
| 26 May 2010 |
Joseph Burgel
|
|
|
| 14 Sep 2010 |
Jesse
|
|
|
| 07 Mar 2011 |
Eckhard Lehmann
|
|
|
| Updates |
| 14 Dec 2005 |
A couple of improvements have been made thanks to Ryan J Ollos. You are now able to toggle the winontop state and the position of the window is left unchanged during operation (rather annoying feature of previous version) |
|
Contact us at files@mathworks.com