Datatips don't disappear

78 ビュー (過去 30 日間)
Amir
Amir 2012 年 8 月 29 日
コメント済み: shilpa mishra 2023 年 10 月 10 日
Hi, When the mouse hovers over a variable, a partial display of the data appears as a tooltip (I think this is called a datatip). The problem is that sometimes it *doesn't disappear*, no matter what I do (minimize the Matlab window, move it around, etc...).
This is extremely annoying as the datatip occludes an important part of the window and prevent me from working normally. So I am often forced to restart matlab, which of course is a big waste of time.
I have been having this problem for a long time, with several operating systems and matlab versions, so it's probably a global problem (maybe it has to do with the way matlab handles windows resources?)
Anyone? -Amir
  2 件のコメント
Jürgen
Jürgen 2012 年 8 月 29 日
Maybe a simple question (probably you did this already): did you try right clicking and delete?
Amir
Amir 2013 年 1 月 22 日
Nope - click & delete doesn't work

サインインしてコメントする。

回答 (10 件)

Justin
Justin 2012 年 8 月 29 日
編集済み: Justin 2012 年 8 月 29 日
Try the following. If the figure is the current active figure, use the following:
>> delete(findall(gcf,'Type','hggroup'));
If you know the figure handle, perform the following:
>> delete(findall(handleFigure,'Type','hggroup'));
Justin
EDIT: To highlight code more clearly.
  2 件のコメント
Christopher Bennett
Christopher Bennett 2020 年 3 月 11 日
Thanks Justin, this works without needing to restart Matlab
shilpa mishra
shilpa mishra 2023 年 10 月 10 日
Thank you so much mr justin.

サインインしてコメントする。


Amir
Amir 2014 年 9 月 29 日
I actually found some shaky solution : go back to the file where you pointed on the variable to show the tooltip : if the variable V over which the mouse hovered was in foo.m, open foo.m and place the mouse over V . That causes the tooltip to disappear.
It's a petty that this happens, because until I found this solution, I had to restart Matlab as well.

AdarG
AdarG 2019 年 3 月 3 日
編集済み: AdarG 2019 年 3 月 3 日
I found that the datatip disappears when I hover on the exact variable from the exact file that poped up the datatip.
This means that when I hover over the variable of the stuck datatip, but from a different file, the datatip remains.

Sam
Sam 2019 年 6 月 4 日
This has annoyed me for a very long time.
I found that if you switch to using cursors in window mode (Tools->Options->Display Cursor In Window), then when you de-select the datatip mode, the datatip window disappears.

Josh Philipson
Josh Philipson 2020 年 4 月 4 日
I found a way to replicate the problem reliably
  1. on a folded cell with significant contents, generate a pop up by folding, then mouse-over onto the %% . . . %%
  2. Move the mouse quickly on top of the pop-up
  3. very quickly move the mouse away from the pop-up
  4. select a different file in the editor. Pop up will persist (undesired behaviour)
  5. Then navigate back to original file, and mouse over the original %% . . . %% comment. Voila. Pop-up goes away.
I sent a bug report to TMW just now. Let's see..
  1 件のコメント
Josh Philipson
Josh Philipson 2020 年 4 月 20 日
I think another way to make this happen is to be at a breakpoint, mouse-over to generate a tool-tip on the breakpoint line, then step-into the code. Editor jumping to a new file sometimes results in stuck pop-up.

サインインしてコメントする。


Image Analyst
Image Analyst 2012 年 8 月 29 日
編集済み: Image Analyst 2012 年 8 月 29 日
I've seen that too, on rare occasions. Not with datatips, but with other types of tooltip strings, like when you hover over something with the mouse. I figure it's an operating system or Java bug since that looks like the kind of thing they handle, but I'm not sure. Maybe Yair http://undocumentedmatlab.com/ would know.

Yair Altman
Yair Altman 2012 年 8 月 29 日
I also see it from time to time in the editor when I hover the mouse on the ellipsis mark (...) signifying folded code: If the displayed (folded) code is large enough, the tooltip does not go away even if I change the editor file, scroll up/down, etc.
This looks like an internal Matlab bug to me, although I must admit I never reported it (bad me...).
The trick I use in such cases is to find something else in Matlab that displays a tool-tip - this usually causes the previous tooltip to go away.

Marco
Marco 2014 年 9 月 29 日
I am experiencing this issue as well (and I have been in the past since 2 years ago, when I started using Matlab). For me, the trick of finding something else that displays a tooltip does not work: the only solution is to restart Matlab. This is very annoying.

Spigge
Spigge 2016 年 1 月 27 日
To me, it seems like this problem occurs more frequently for tooltips that need to be repositioned to fit inside the application window. For example, a tooltip locked to the corner or the side of a window has a higher tendency to get stuck than a "free" toolotip closer to the center. But I really don't have sufficient statistics to say this is always the case.
Fredrik

Eddie
Eddie 2018 年 4 月 28 日
The function hints window issue occurs on Ubuntu 16.0 and MATLAB Version: 9.1.0.441655 (R2016b)
The hint window can't be moved nor can anything behind it be clicked on. The window is transparent but brighter that what's behind it. I can see the header if I double click on the Ubuntu toolbar Matlab icon and then tab to it.
This did not work
delete(findall(gcf,'Type','hggroup'));
Only thing I found to work was restarting matlab.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by