Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: Badger on February 28, 2023, 01:04:16 am

Title: Capabilities missing from RichMemo???
Post by: Badger on February 28, 2023, 01:04:16 am
I'm trying to load a document into RichMemo.  The document was developed as a Libre Office Text Document and then saved as an RTF document.  TextEdit.LoadRichText(fs) did a pretty good job of loading it into RichEdit but there seems to be some aspects of the RTF file that can't be displayed.  The original (and the RTF when opened in Libre) has page breaks, a section where the text is in two columns and borders round a group of paragraphs.  These do not appear in the RichEdit box.
I assume the developer of Rich Edit has not included these capabilities.  I'm not surprised - it would be quite a task to replicate a full RTF capability.  However,  just in case I'm missing something, is it actually possible to display these attributes?
Title: Re: Capabilities missing from RichMemo???
Post by: Curt Carpenter on February 28, 2023, 02:02:07 am
I don't know the answer, not having used most of the Lazarus RichMemo features.  But you might try loading "Kcontrols" using the Online Package Manager and see if the TKMemo component in that package does what you need.  I believe it handles a more complete subset of the RTF standard features (although I haven't tried it myself yet).
TinyPortal © 2005-2018