No BSD License  

Highlights from
aot

4.0

4.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 196.12 KB File ID: #20694
image thumbnail

aot

by PAUL koch

 

14 Jul 2008 (Updated 15 Jul 2008)

Makes the current figure/gui stay on top of all other figures(allways on top, AOT)

| Watch this File

File Information
Description

% function aot(mode, guiname)
% Makes the current figure stay on top of all other figures(allways on top, aot)
% and adds a pushtool to the figure toolbar. With the pushtool the aot-mode
% can be changed. Also works for guis and those without a toolbar.
% for a gui without toolbar use the commandline to change the aot-mode
%
% USAGE:
% aot(mode, guiname)
% inputs:
% mode [0,1] : normal mode or allways on top
% guiname: full or partial name of the GUI *** not needed for figures ***
%
% EXAMPLES:
% %__ FIGURES _____
% figure; plot(sin(1:30));aot; % adds a AlwaysONtop-pushtool
%
% aot(1); % Fig is AlwaysONtop
% aot ; %%[same as] aot(0) % FIG is in NORMAL mode [not AOT ]
%
% %__ GUIS _____
% wrldtrv; aot(1,'World') ; % GUI is AOT
% aot(0,'World') ; % GUI is in NORMAL mode [not AOT ]
%
% %% another example
% h = waitbar(0,'Please wait...','name','wb');
% figure;
% set(gcf,'position',[1 65 1400 912]);
% aot(1,'wb');
% plot(rand(100));
% for i=1:50,
% plot(1:100, rand(100,1),'color','r','linewidth',2);
% pause(.1);
% waitbar(i/50,h);
% end
%
% needed file:
% [1] aot.exe ,this file was created with the open-source software AUTOHOTKEY
% (Version 1.0.47.06, Chris Malletts, www.autohotkey.com).
% tested on MATLAB Version 7.4.0.287 (R2007a) and MATLAB Version
% 6.5.0.180913a (R13) under OS Microsoft Windows XP Version 5.1 /SP2
% ----------------------------------------------------------------------
% Author: S.P.Koch, BNIC 2008 [paulekoch@ymail.com]
% ----------------------------------------------------------------------

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
16 Jul 2008 Peter Giles

A quick search turned up the following, which uses a mex-file instead of an exe and does allow figure handle as input. On the other hand it does not provide a (handy) button for turning off the always-on-top behaviour.

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8642&objectType=File

16 Jul 2008 Peter Giles

I found this useful and it does what it says it does, at least for simple figures. I generally like it.

I don't like downloading and running a .exe very much.

There is a bug if you install aot such that the full path name has a space in it, e.g. if the path is

C:\Program Files\MATLAB\r2007b\work\aot\aot.exe

You will get an error on the eval. You need to pass some double-quotes to DOS to fix this.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation PAUL koch 22 Oct 2008 10:10:09
customization PAUL koch 22 Oct 2008 10:10:09
always on top PAUL koch 22 Oct 2008 10:10:09
stay on top PAUL koch 22 Oct 2008 10:10:09
toggle PAUL koch 22 Oct 2008 10:10:09
graphics PAUL koch 22 Oct 2008 10:10:09
plot annotation PAUL koch 22 Oct 2008 10:10:09

Contact us at files@mathworks.com