Recent

Author Topic: TRichMemo Demo  (Read 9170 times)

Dr.Theopolis

  • Jr. Member
  • **
  • Posts: 69
TRichMemo Demo
« on: February 07, 2013, 06:54:40 am »
I couldn't find a very good demo of the TRichMemo component, so I put together one. It's nearly a full featured basic editor. All the good stuff is in a frame so it is easy to add to your own project.

JanRoza

  • Hero Member
  • *****
  • Posts: 538
    • http://www.silentwings.nl
Re: TRichMemo Demo
« Reply #1 on: February 07, 2013, 01:40:51 pm »
Beautiful demo!
Very helpful
I think you should add it to the RichMemo Wiki-page.

OS: Windows 10 (64 bit) / Ubuntu 19.04 (64 bit)
Laz: Lazarus 2.0.4 FPC 3.0.4 i386-win32-win32/win64

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #2 on: August 07, 2013, 07:30:51 pm »
Your demo does not compile

eny

  • Hero Member
  • *****
  • Posts: 1587
Re: TRichMemo Demo
« Reply #3 on: August 07, 2013, 07:48:36 pm »
Tried to run it by first installing the richmemo package.
Unfortunately it does not compile on win7-64 bit.
Not with Lazarus 1.0.4 or 1.0.10 32 bit.
And not with 1.1 64 bit.

<<edit>>
Richmemo 1.0.0 that is.
« Last Edit: August 07, 2013, 07:52:54 pm by eny »
All posts based on: Win10 (Win64); Lazarus 1.8.0 'stable' (#56594 win64) unless specified otherwise...

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #4 on: August 07, 2013, 07:55:54 pm »
I was trying on Linux. The SetParaAlign was empty for Linux, and it was the reason it would not compile. So I removed it, and it did compile. But in fact, the RichMemo component it self seems to be broken. Trying to start a new project and dropping a RichMemo and to buttons adding RichMemo1.CopyToClipboard; and  RichMemo1.PasteFromClipboard;
 DOes not even work. Nor does the SetFontParams...

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TRichMemo Demo
« Reply #5 on: August 07, 2013, 07:58:51 pm »

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #6 on: August 07, 2013, 08:17:29 pm »
Actually I have (at least from this adress: http://code.google.com/p/lazarus-br/source/checkout,  as the link in the post you gave me doesn't work anymore). Trying to install the lzRichEdit from the SVN gives me an error.

/usr/bin/ld: warning: /home/jerik/.lazarus/bin/link.res contains output sections; did you forget -T?
/home/jerik/Lazarus/Components/lazarus-br-read-only/package/lzRichEdit/lib/x86_64-linux/wsrichbox.o: In function `REGISTERCUSTOMRICHBOX':
/home/jerik/Lazarus/Components/lazarus-br-read-only/package/lzRichEdit//widgetset/wsrichbox.pas:96: undefined reference to `WSRegisterCustomRichBox'
/usr/lib/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/usr/lib/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TRichMemo Demo
« Reply #7 on: August 07, 2013, 09:06:59 pm »

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #8 on: August 07, 2013, 09:39:07 pm »
Thank you! This one I manage to install and program with. However, when I want to run a program I get "Access violation" error. The same happenes if I try to run the Example program that comes with it....

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TRichMemo Demo
« Reply #9 on: August 07, 2013, 09:44:39 pm »
Try to deactivate RichOle.

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #10 on: August 07, 2013, 09:49:20 pm »
Sorry, don't know how to do that?

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #11 on: August 07, 2013, 10:03:40 pm »
Found it - it is called ActiveRichOle... set it to FALSE, but didn't help.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TRichMemo Demo
« Reply #12 on: August 07, 2013, 10:25:55 pm »
As far as I remember I have deleted the whole ActiveRichOle property.

When I try to open this demo, my Lazarus says "unknown property ActiveRichOle".
« Last Edit: August 07, 2013, 10:29:13 pm by typo »

derox

  • Jr. Member
  • **
  • Posts: 51
Re: TRichMemo Demo
« Reply #13 on: August 07, 2013, 11:01:33 pm »
Hmm... went trhough the whole component and removed every instance of this property.... still get the same error  ::) :o

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TRichMemo Demo
« Reply #14 on: August 08, 2013, 12:11:35 am »
Readme file is in Portuguese and it says:

Este pacote serve para trabalhar com textos formatados, suporta o formato Rich Text.

O controle ainda tem alguns erros:

No Windows, ao ativar o RichOle e executar o programa usando um depurador, o mesmo vai acusar erro ao destruir o controle se durante a execução tiver sido inserido uma imagem. É um erro silencioso e só aparece com uso do depurador.

Algumas propriedades não respondem da mesma forma no Windows e no Linux.

Elson Junio (see the file for email adress)
« Last Edit: August 08, 2013, 12:20:44 am by typo »