<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem setting annotation text]]></title><description><![CDATA[<p dir="auto">I am setting an annotation (pascal):</p>
<p dir="auto">procedure squiggle(level, line, start, length: integer; message : String);<br />
var<br />
b, c : TBytes;<br />
begin<br />
b := TEncoding.UTF8.GetBytes(message);<br />
mcheck(SendMessage(ScintillaMainHandle, SCI_SETINDICATORCURRENT, level, 0));<br />
mcheck(SendMessage(ScintillaMainHandle, SCI_INDICATORFILLRANGE, start, length));<br />
mcheck(SendMessage(ScintillaMainHandle, SCI_ANNOTATIONSETTEXT, 0, LPARAM(<a class="plugin-mentions-user plugin-mentions-a" href="/user/b" aria-label="Profile: b">@<bdi>b</bdi></a>[0])));<br />
SetLength(c, 100000);<br />
mcheck(SendMessage(ScintillaMainHandle, SCI_ANNOTATIONGETTEXT, 0, LPARAM(@c[0])));<br />
end;</p>
<p dir="auto">NPP encoding is UTF8, which is what I’m using. No matter what I provide - UTF-8 or 16, or ASCII, what is actually displayed in the annotation is ‘B’ (even if the last parameter is 0). if I provide a bad pointer, I’ll get an access violation, so the construction of the 4th parameter is not - probably - the error. I’ve played around a lot with the text, but I wonder if that’s not the source… “B” is not the first letter of any text I’m displaying… I am at a loss, and any hints gratefully received. thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15855/problem-setting-annotation-text</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 18:43:35 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15855.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Jun 2018 10:27:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem setting annotation text on Sat, 02 Jun 2018 22:49:22 GMT]]></title><description><![CDATA[<p dir="auto">Actually, my question was about Call Tips - and once I found out what I was supposed to asking, my own error was also obvious… sorry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32729</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32729</guid><dc:creator><![CDATA[Grahame Grieve]]></dc:creator><pubDate>Sat, 02 Jun 2018 22:49:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem setting annotation text on Sat, 02 Jun 2018 20:57:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/grahame-grieve" aria-label="Profile: Grahame-Grieve">@<bdi>Grahame-Grieve</bdi></a></p>
<p dir="auto">Can you give me an example where in notepad++ you see the reported popup text?<br />
Currently I’m unsure about which functionality you are looking for.<br />
Or is this functionality only available in your plugin currently?<br />
If so, could describe in more detail what you try to achieve?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32723</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32723</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Sat, 02 Jun 2018 20:57:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem setting annotation text on Sat, 02 Jun 2018 20:40:11 GMT]]></title><description><![CDATA[<p dir="auto">ok, so I was quite confused, and this clarified, thanks. Annotations work fine. I’m not asking about annotations. I’m asking about the popup text that displays when the mouse hovers over the indicator. That’s what is displaying as a single character. It’s now changed, to “T” - but I don’t seem to have any control over it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32719</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32719</guid><dc:creator><![CDATA[Grahame Grieve]]></dc:creator><pubDate>Sat, 02 Jun 2018 20:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem setting annotation text on Fri, 01 Jun 2018 12:52:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/grahame-grieve" aria-label="Profile: Grahame-Grieve">@<bdi>Grahame-Grieve</bdi></a></p>
<p dir="auto">I don’t <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_ANNOTATIONSETVISIBLE" rel="nofollow ugc">SCI_ANNOTATIONSETVISIBLE</a> in your code.</p>
<p dir="auto">The basic steps are (python example)</p>
<pre><code>editor.annotationSetText(line, text)
editor.annotationSetStyles(line, styles)
editor.annotationSetVisible(annotation_visible)
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32651</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32651</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 01 Jun 2018 12:52:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem setting annotation text on Fri, 01 Jun 2018 11:18:07 GMT]]></title><description><![CDATA[<p dir="auto">oh - v7.5.6</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32638</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32638</guid><dc:creator><![CDATA[Grahame Grieve]]></dc:creator><pubDate>Fri, 01 Jun 2018 11:18:07 GMT</pubDate></item></channel></rss>