Recent

Author Topic: Help Installing RichMemo  (Read 362 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1213
Help Installing RichMemo
« on: September 21, 2022, 02:47:57 am »
I would like to take a look at RichMemo.

I located it on the Web and downloaded the zip file: RichMemo.zip

Went to Packages Install/Uninstall packages and tried to import the package. It didn't work. Have no idea what to do next.

 anyone know.

Thanks.
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

KodeZwerg

  • Sr. Member
  • ****
  • Posts: 496
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Help Installing RichMemo
« Reply #1 on: September 21, 2022, 04:17:29 am »
Install with OPM worked for me.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

JLWest

  • Hero Member
  • *****
  • Posts: 1213
Re: Help Installing RichMemo
« Reply #2 on: September 21, 2022, 05:19:16 am »
@KodeZwerg

Yes, I think that worked. So now I have a TDBMemo in my components list.

Thanks
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

JLWest

  • Hero Member
  • *****
  • Posts: 1213
Re: Help Installing RichMemo (Solved)
« Reply #3 on: September 21, 2022, 06:03:15 am »
i don't know what a TDBMemo but it's not a Richmemo.
I'm doing something wrong.

I now have a richmemo installed.

 It not what I expected.
« Last Edit: September 21, 2022, 06:36:55 am by JLWest »
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

rvk

  • Hero Member
  • *****
  • Posts: 5007
Re: Help Installing RichMemo
« Reply #4 on: September 21, 2022, 07:25:56 am »
You're looking at the wrong component.
TRichMemo is under Common Controls at the end.
See https://wiki.freepascal.org/RichMemo

BTW. There is no TDBRichMemo.

If you need a TDBRichMemo you could look here
https://forum.lazarus.freepascal.org/index.php/topic,26810.msg167231.html#msg167231
(Extension on TRichMemo so you still need that too)
« Last Edit: September 21, 2022, 07:29:54 am by rvk »

JLWest

  • Hero Member
  • *****
  • Posts: 1213
Re: Help Installing RichMemo
« Reply #5 on: September 21, 2022, 07:41:19 am »
@rvk Thanks

I got the TRichMemo loaded adn on a form. Just can't figure how to load a file into it.
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

rvk

  • Hero Member
  • *****
  • Posts: 5007
Re: Help Installing RichMemo
« Reply #6 on: September 21, 2022, 07:51:04 am »
You need to do that via a T(File)Stream with  TRichMemo.LoadRichText(Stream).

But you can create a helper function for that.
After that you can use TRichMemo.LoadRTFFromFile.
See https://forum.lazarus.freepascal.org/index.php/topic,59905.msg447230.html#msg447230

You could also include RichMemoUtils in your uses and use the LoadRTFFile and SaveRTFFile functions from there (with those you need to pass the richmemo as parameter).


 

TinyPortal © 2005-2018