Recent

Author Topic: [Solved] Rich Text Format component  (Read 721 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 254
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
[Solved] Rich Text Format component
« on: September 06, 2024, 11:26:46 pm »
I'm looking a bit in the install LCL for a component that supports writing in a memo blob field that supports RTF.  Is there one?
« Last Edit: September 19, 2024, 03:00:31 pm by 1HuntnMan »

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 525
Re: Rich Text Format component
« Reply #1 on: September 07, 2024, 12:16:41 am »
The only component I know is in the Online Package Manager.  No idea if it can be adapted to your case.  Has bugs.

Thaddy

  • Hero Member
  • *****
  • Posts: 15747
  • Censorship about opinions does not belong here.
Re: Rich Text Format component
« Reply #2 on: September 08, 2024, 07:53:44 am »
« Last Edit: September 08, 2024, 08:12:59 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

AlexTP

  • Hero Member
  • *****
  • Posts: 2465
    • UVviewsoft
Re: Rich Text Format component
« Reply #3 on: September 08, 2024, 08:37:53 am »
TRichView : components for displaying, editing and printing hypertext documents.
[VCL; FMX for all platforms; LCL for Windows]
https://www.trichview.com/

dbannon

  • Hero Member
  • *****
  • Posts: 3098
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Rich Text Format component
« Reply #4 on: September 08, 2024, 11:01:31 am »
I would suggest KMemo, (link above). You can stream or use files in RTF for input and output.  You will probably need some code to extend the existing end user interactive editing ( https://wiki.freepascal.org/KControls/KMemo_notes ). I use it in my tomboy-ng app, been in use since 2017, quite a few users. Works on Linux, Mac and Windows. Does not care about widget set, just works.

Alternatives are TRichMemo, not quite so cross platform but still good, not as feature rich.  Possibly simpler to use. https://wiki.freepascal.org/RichMemo. Probably consider a GTK2 app only on Linux.

I don't think either of the above are under active development but I have sent in patches to KMemo and had them accepted. I requested extension to the Bullet system (multilevel bullets) and the author did put in quite a considerable effort to get that working. https://github.com/kryslt/KControls/issues

On the other hand, TRichMemo has a number of unanswered Issues. https://github.com/skalogryz/richmemo/issues

TRichView is commercial, closed source (although developer is provided the source under a confidentiality clause) and is only available for Windows with Lazarus.

Davo

e&oe





Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 254
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: [Solved] Rich Text Format component
« Reply #5 on: September 19, 2024, 03:01:08 pm »
Download KControls.  Thanks ALL!

dbannon

  • Hero Member
  • *****
  • Posts: 3098
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [Solved] Rich Text Format component
« Reply #6 on: September 20, 2024, 02:04:29 am »
Download KControls.  Thanks ALL!

Its not particularly well documented. Don't be afraid to ask here if need be.

It does work well.
See it in a very complicated use here -  https://github.com/tomboy-notes/tomboy-ng/blob/master/source/editbox.pas
And a very simple use here - https://github.com/tomboy-notes/tomboy-ng/blob/master/source/colours.pas

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018