Forum > RichMemo

[SOLVED] RichMemo and display of embedded images in an rtf file

<< < (2/2)

skalogryz:
no problems

--- Quote from: petevick on March 01, 2022, 05:58:36 pm ---I've come across KControls, their TKMemo control does actually display images in both Win and Linux, without any security issues in Win. The only small issue is a higher compiled size than using RichMemo, around 0.9MB in the project it's in, but hey, it works !!  ;D

--- End quote ---
KMemo is the best choice for you right now

dbannon:
When I first started using KMemo in my app, I made a lot of notes at https://wiki.freepascal.org/KControls/KmemoNotes

Not been updated for some time, feel free to share you experience.

Davo

petevick:

--- Quote from: dbannon on March 02, 2022, 02:18:10 am ---When I first started using KMemo in my app, I made a lot of notes at https://wiki.freepascal.org/KControls/KmemoNotes

Not been updated for some time, feel free to share you experience.

Davo

--- End quote ---
I did actually come across that page when I was Googling for an rtf control.
I'm simply displaying an rtf file, and the only thing I've come across so far is that....

--- 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";}};} ---  KMemo.LoadFromRTF(Application.Location+'Help.rtf');....only works in the Laz environment not when compiled, whereas.....

--- 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";}};} ---  FS := TFileStream.Create(Utf8ToAnsi(Application.Location+'Help.rtf'), fmOpenRead or fmShareDenyNone);  KMemo.LoadFromRTFStream(FS);....works in both situations.

Navigation

[0] Message Index

[*] Previous page

Go to full version