TRichMemo for Linux/gtk2 lazarus / 31-LCL ---------------------------------------------------------------------- eric · 2014-03-04 08:17 Has anyone succeeded in making TRichMemo work on a Linux/gtk2 system? The latest SVN version doesn't even install initially, because there are several references to Gtk*** that have to be changed to Gtk2***. Having installed it, the text can be edited normally, and the rich text features work correctly, but the SaveRichText function does nothing, it just returns False. Looking at the source, I see that the win32 version has some additional functions which implement SaveRichText, but these are absent from the gtk2 version. Any suggestions would be much appreciated. PS I'm using Lazarus 1.0.14, in case it's relevant. ---------------------------------------------------------------------- skalogryz · 2014-03-20 12:20 I'm assuming "rich text features" means text formatting, rather than saving or loading RTF files. To be clear, Rich Text Loading or Saving was not implemented since neither Gtk, Gtk2 nor Qt are supporting RTF natively.  (unlike Win32 and OSX APIs) What could happen. There's FPC component for reading RTF (I think I even copied files to RichMemo sources). An RTF could be loaded and the text needs to be formatted (using the API calls). Any patches would be much appreciated. (and some developers wanted to provide them, even 2-3 years ago, but I didn't see any as a result) I don't have enough free time to right the implementation myself. ---------------------------------------------------------------------- eric · 2014-03-20 13:17 Thank you for the reply. For the moment I've worked around this by implementing my own functions to save and load the rich text. What I do is is save two files, one containing the plain text, and the other containing the formatting information; then on loading the files, I reconstruct the formatted text for display and editing. This is a poor solution, but it works for my rather simple needs. Unfortunately I don't have the skills to do it properly in the way you suggest. ---------------------------------------------------------------------- skalogryz · 2014-03-20 13:59 a poor solution might spark a complete one ---------------------------------------------------------------------- eric · 2014-03-20 18:49 I'll see what I can do.