<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p><br>
</p>
<p>I realize this receipe in the eric code editor for the context
menu event already. You may have a look at
<a class="moz-txt-link-freetext" href="https://hg.die-offenbachs.homelinux.org/eric/file/tip/src/eric7/QScintilla/Editor.py">https://hg.die-offenbachs.homelinux.org/eric/file/tip/src/eric7/QScintilla/Editor.py</a>
lines 5594 and following.</p>
<p><br>
</p>
<p>Regards,<br>
Detlev</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 08.11.22 um 14:43 schrieb Matic
Kukovec:<br>
</div>
<blockquote type="cite"
cite="mid:VE1PR09MB328024A28A6144F10265C9FED73F9@VE1PR09MB3280.eurprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
255, 255);" class="elementToProof">
Very good! Thanks Baz<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b> Baz
Walter <a class="moz-txt-link-rfc2396E" href="mailto:bazwal@gmail.com"><bazwal@gmail.com></a><br>
<b>Sent:</b> Tuesday, November 8, 2022 2:34 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:qscintilla@riverbankcomputing.com">qscintilla@riverbankcomputing.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:qscintilla@riverbankcomputing.com"><qscintilla@riverbankcomputing.com></a><br>
<b>Subject:</b> Re: Margin mouse hover / tooltip?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span
style="font-size:11pt;">
<div class="PlainText">On 08/11/2022 09:27, Matic Kukovec
wrote:<br>
> Does anybody know if it's possible to catch a
"MouseMove" or "ToolTip" event on a margin and knowing
it's on a margin?<br>
> I am adding markers to a margin and would like to
display a tooltip or statustip for the markers on mouse
hover.<br>
<br>
I don't think there's any built-in tooltip events for
margins. However, you can reimplement mouseMoveEvent and
get the
<br>
line number with QsciScintilla.lineAt(event.pos()) whilst
hovering on the margins. The margin number can be
determined
<br>
by comparing the margin widths with event.x(). The current
margin count can be determined with
QsciScintilla.margin(),
<br>
and the width of each margin with
QsciScintilla.marginWidth(index). By default, there are
five margins. Hidden margins
<br>
have zero width.<br>
<br>
</div>
</span></font></div>
</blockquote>
<pre class="moz-signature" cols="72">--
Detlev Offenbach
<a class="moz-txt-link-abbreviated" href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a></pre>
</body>
</html>