Forum > RichMemo

[solved] RichMemo and CHARFORMAT2 - highlight text

<< < (4/4)


if you hold your cursor over CHARFORMAT2 it will show a pop-up note: type CHARFORMAT2 = CHARFORMAT2A = _charformat2a =
record; C:\lazarus\fpc\3.2.0\source\packages\winunits-base\src\richedit.pp(953,6)

RichEdit.pp is the RichEdit unit.

So if you don't have RichEdit and/or RichMemoUtils in your USES clause ... they need to be there.


Thank you so much for the clarification!
It works for me in the meanwhile and I am so happy to have this unit. I added it into my private library.

and btw:
Rick's line (thank you Rick!)

--- Code: Text  [+][-]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";}};} ---In the RichMemoHighlightWord procedure:replace RichMemoHighLightRange(R, Found, Length(AWord), AColor)with RichMemoHighLightRange(R, Found, utf8length(AWord), AColor)
uses LazUTF8


[0] Message Index

[*] Previous page

Go to full version