aot

Makes the current figure/gui stay on top of all other figures(allways on top, AOT)
936 Downloads
Updated 15 Jul 2008

No License

% 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]
% ----------------------------------------------------------------------

Cite As

PAUL koch (2024). aot (https://www.mathworks.com/matlabcentral/fileexchange/20694-aot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dialog Boxes in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0