<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<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>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Baz Walter <bazwal@gmail.com><br>
<b>Sent:</b> Tuesday, November 8, 2022 2:34 PM<br>
<b>To:</b> qscintilla@riverbankcomputing.com <qscintilla@riverbankcomputing.com><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>
</body>
</html>