Forum > Options

Disable tooltip text under mouse while selecting text?

(1/2) > >>

SuperSathanas:
I'm using Lazarus 2.2.6. If it matters at all, I'm using it with Linux Mint 21.1 Vera with Mate Desktop, Debian 12 Bookworm with Gnome, and Windows 10 (sparingly and begrudgingly).

I'm experiencing the mild inconvenience of having my text selections with the mouse in the source editor interrupted by tooltip text if I let the mouse hover over a word for too long. Some obvious solutions are to use the keyboard to select text and/or to adjust the delay before the tooltip is displayed. However, in my ideal world, tooltip display is almost immediate and I select text with the mouse, so I figured I'd try to achieve that before resigning to sucking it up and changing my ways.

I've looked through all the options and don't see anything that seems relevant. Is there a way to keep the tooltip from displaying while I'm selecting text in the source editor?

Martin_fr:
I am not aware of a setting.

You can (at least as workaround) increase the time before the hint shows up: Tools > Options: > Editor > Completion and Hints: "Delay for hints" (middle slider).

---
For all else, if there isn't already a request, you can add a feature request. (on the bug tracker)

Personally, I agree, I don't see much use for a hint if the mouse button is down (either while selecting, or while drag/dropping text)

Nicole:
May be there is a workaround.
Not sure, if this works for you, because it is very old code for me.
In one case I lifted up the hint window for some pixel by this


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---// verschiebt das Ausgabefenster vom Mauscursor wegprocedure TFrame1.Hint_bacoHintLocation(ATool: TDataPointHintTool;  AHintSize: TSize; var APoint: TPoint);begin   APoint.Y := APoint.Y - AHintSize.CY;end;
Not sure, which events your item supports.
What you see above is a part / method of the TAChart component.

Martin_fr:
I might be missing something, but I don't see the point of moving the hint somewhere else? It still be the hint poping up.

Btw, in my testing (on Win), the hint does pop up, but as soon as I continue moving the mouse the hint closes and I continue selecting.

In any case, from memory, in  ide/sourceeditor.pp should be a hint timer. Which IIRC is used to open the hint. That would have to somehow check, if the mouse button is down....

Nicole:
In some cases the hint gave me too many troubles.
Then I switched the hint off and wrote the text to an panel or similar, which has more options.
In one case I used a Richmemo which serves me fine. Just a few lines and does nothing but showing mouse hover over text.

Navigation

[0] Message Index

[#] Next page

Go to full version