File Exchange

image thumbnail

ALWAYSONTOP

version 1.1 (2.28 KB) by

ALWAYSONTOP adds a pushtool to the figure toolbar for the "Always on top"-option.

3 Downloads

Updated

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)

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

Igor (view profile)

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

LU (view profile)

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

LU (view profile)

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

Jveer (view profile)

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

Elmar Tarajan

Elmar Tarajan (view profile)

updated and tested with R2012a - works!

Jveer

Jveer (view profile)

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

Evgeni (view profile)

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!

Updates

1.1

fixed bug in newer ML-version

MATLAB Release
MATLAB 7.13 (R2011b)
Acknowledgements

Inspired: WinOnTop

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video