File Exchange

image thumbnail

ALWAYSONTOP

version 1.1.0.0 (2.28 KB) by Elmar Tarajan
ALWAYSONTOP adds a pushtool to the figure toolbar for the "Always on top"-option.

3 Downloads

Updated 21 Dec 2011

View Version History

View License

ALWAYSONTOP(hFig)

ALWAYSONTOP('auto')
adds the pushtool to the each new created figure automatically.

ALWAYSONTOP('remove')
remove the automatically adding of pushtools to new figures.

See also: UISWITCHRENDERER (in FileExchange)

Cite As

Elmar Tarajan (2021). ALWAYSONTOP (https://www.mathworks.com/matlabcentral/fileexchange/26454-alwaysontop), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

per isakson

ALWAYSONTOP is broken by HG2:

>> alwaysontop auto
>> plot(1:12,'.')
Undefined function or variable 'fHG1Client'.
Error in alwaysontop>update_pushtool (line 69)
jf.fHG1Client.getWindow.setAlwaysOnTop(1)
Error while evaluating PushTool ClickedCallback

and two figures were created. An empty figure with the alwaysontop icon and a second with the diagram, but without the pin-icon.

Still five stars!

Igor

If someone is looking for a function to simply switch ALWAYS-ON-TOP property of a figure, without a button on a figure's toolbar, see those "Win On Top" submission I've uploaded (see "Acknowledgements" section above).

LU

I tried with student version R2013, no error report, but it just does not work (figure not on the top).
Can you update it? it would be really helpful!

LU

can you make an update? Thanks very much!!!

per isakson

Thanks for a great tool. I was just reminded of how dependent on alwaysontop I've become. How do one modify or describe a diagram without seeing it? And thanks for the update!

Jveer

Thank you for updating. I can confirm it works on R2011b and R2012a on both snow leopard and lion.

Elmar Tarajan

updated and tested with R2012a - works!

Jveer

Hello

This doesn't work with R2011b. I get the following error:

No appropriate method, property, or field fFigureClient for class
com.mathworks.hg.peer.HG1FigurePeer.

Error in alwaysontop>update_pushtool (line 67)
jf.fFigureClient.getWindow.setAlwaysOnTop(1)

Error while evaluating uipushtool ClickedCallback

Please update.

Evgeni

The feature is very helpful for fast iterations in development process. It is better then just doking it into MATLAB environment as all settings are preserved and I can scale the figure as large as needed. Thank you Elmar!

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: WinOnTop

Community Treasure Hunt

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

Start Hunting!