Recent

Author Topic: Richmemo  (Read 32600 times)

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Richmemo
« on: December 16, 2014, 08:00:02 pm »
On my way to converting my application (3.234.129 lines) from Delphi to Lararus:

Richmemo: From the official sites it is a version from 2009? From the SVN I get from 4 days ago; which doesn't compile / link. Anyone having a link to a "in between" version?

Indy: There is a download at fulgan. Latest stable version to be found where?

I love to work with Lazarus. 10 years with Delphi; it's a steap curve learning helping yourself. Bur I like Lazarus / FPC it's smart and intelligent!


Michl

  • Full Member
  • ***
  • Posts: 226
Re: Richmemo
« Reply #1 on: December 16, 2014, 10:21:28 pm »
From the SVN I get from 4 days ago; which doesn't compile
I've just tested the SVN version https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/richmemo from Wiki. Here it compiles and its useable (Lazarus 1.3 r47207M FPC 2.6.4 i386-win32-win32/win64).

What is your OS and Lazarus version?
Code: [Select]
type
  TLiveSelection = (lsMoney, lsChilds, lsTime);
  TLive = Array[0..1] of TLiveSelection;

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Richmemo
« Reply #2 on: December 16, 2014, 10:35:25 pm »
Try lzRichEdit, it compiles.

http://wiki.lazarus.freepascal.org/lzRichEdit

If you are a Windows user, you will have a good surprise. And if you are a Linux user, please help on development.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #3 on: December 17, 2014, 02:28:18 am »
What is the error message you are getting on compilation?

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Re: Richmemo
« Reply #4 on: December 17, 2014, 07:02:16 pm »
 ;) First of all thanks that you care!

Quote
rtfeditpropdialog.pas(139,52) Hint: Local variable "f" does not seem to be initialized
rtfeditpropdialog.pas(157,52) Hint: Local variable "f" does not seem to be initialized
rtfeditpropdialog.pas(171,52) Hint: Local variable "f" does not seem to be initialized
PPU Loading C:\Lazarus_ekstra\richmemo\lib\i386-win32\richmemoregister.ppu
PPU Source: richmemoregister.pas not found
PPU Source: richmemopackage.lrs not found
Recompiling richmemoregister, checksum changed for RtfEditPropDialog
richmemopackage.pas(10,20) Fatal: Can not find unit richmemoregister used by richmemopackage. Check search path package richmemopackage, try a clean rebuild, check implementation uses sections..

My application is just a button and a richmemo!
Changes in search paths is a way through but probably not what the composer want us to!

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #5 on: December 17, 2014, 07:37:15 pm »
hmm... are you getting the error when you compile the project and when you compile Lazarus?

Do you have richmemo installed into Lazarus? I'd think you should.

And if yes, then richmemo units should not be part of your search path at all. Since they would be appended automatically by Lazarus.

You also need to open your project location path. Find "lib\i386-win32" folder there and wipe all .o and .ppu files out of it. Otherwise they'll keep conflicting with "lib" of richmemo package.
« Last Edit: December 17, 2014, 07:41:13 pm by skalogryz »

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Re: Richmemo
« Reply #6 on: December 17, 2014, 07:58:56 pm »
I deleted in *.o anmd *.ppu's

Quote
Hint: Start of reading config file C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.6.4 [2014/10/11] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling richmemopackage.pas
Compiling richmemofactory.pas
Compiling richmemo.pas
Compiling wsrichmemo.pas
C:\Lazarus_ekstra\richmemo\wsrichmemo.pas(28,23) Hint: Unit "StdCtrls" not used in WSRichMemo
Compiling .\win32\win32richmemo.pas
Compiling .\win32\win32richmemoproc.pas
Compiling richmemoutils.pas
C:\Lazarus_ekstra\richmemo\richmemoutils.pas(75,3) Note: Local variable "sel" not used
C:\Lazarus_ekstra\richmemo\richmemoutils.pas(88,3) Note: Local variable "sel" not used
C:\Lazarus_ekstra\richmemo\win32\win32richmemoproc.pas(649,3) Note: Local variable "txtlen" is assigned but never used
Compiling richmemoregister.pas
Compiling .\ide\rtfeditpropdialog.pas
Compiling richmemortf.pas
Compiling rtfparspre211.pas
Compiling richmemohelpers.pas
C:\Lazarus_ekstra\richmemo\richmemohelpers.pas(25,13) Hint: Unit "strutils" not used in RichMemoHelpers
richmemopackage.pas(10,3) Hint: Unit "RichMemoFactory" not used in richmemopackage
richmemopackage.pas(11,3) Hint: Unit "RichMemoHelpers" not used in richmemopackage
richmemopackage.pas(11,20) Hint: Unit "RTFParsPre211" not used in richmemopackage
richmemopackage.pas(11,35) Hint: Unit "RtfEditPropDialog" not used in richmemopackage
5834 lines compiled, 1.4 sec
8 hint(s) issued
3 note(s) issued
"Compiling package richmemopackage 1.0" completed
Hint: Start of reading config file C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.6.4 [2014/10/11] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling project1.lpr
PPU Loading C:\Lazarus_ekstra\richmemo\lib\i386-win32\richmemoregister.ppu
PPU Source: richmemoregister.pas not found
PPU Source: richmemopackage.lrs not found
Recompiling richmemoregister, checksum changed for RtfEditPropDialog
richmemopackage.pas(10,20) Fatal: Can not find unit richmemoregister used by richmemopackage. Check search path package richmemopackage, try a clean rebuild, check implementation uses sections..

Richmemo is installed and compiled with Lazarus. I am on Win7. Simple project as described and the above is the result.

Could it be the way I download the SVN?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #7 on: December 17, 2014, 08:18:17 pm »
could you please archive and post the project here?

The problem I see - is that your project trying to compile richmemo sources. It shouldn't , because sources are compiled during "installation" to the Lazarus.
« Last Edit: December 17, 2014, 08:21:09 pm by skalogryz »

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Re: Richmemo
« Reply #8 on: December 17, 2014, 08:53:27 pm »
You are right.
When making a new project in a new directory; it works fine.
Putting a Richmemo in my mainform in my project; looking to the source file; it adds the richmemopackage in the uses clause.
I have had several attempts to install it. How to reset it and start all over?

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Re: Richmemo
« Reply #9 on: December 17, 2014, 08:57:17 pm »
 ;) I am still not sure I install correctly from the SVN repository.
Maybe it is not richmemo but my ability to download/install from SVN? Can I read somwhere how to do?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #10 on: December 17, 2014, 08:59:49 pm »
I'm not sure, if it has anything to do with SVN, but you can do the following.

Revert all the changes made at richmemo package. (if you're using tortoise SVN you can just right click on it and hit select "svn revert")

Then - uninstall the package from Lazarus and recompile the IDE.
After that - install it richmemo again, recompiling IDE.

Once done, create a new project and drop RichMemo on the form. The only unit that should be added to "uses" section is "RichMemo" and not "RichMemoPackage"

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #11 on: December 17, 2014, 09:28:36 pm »
But looking at the other problems that you've. I'd think, something is messed-up with your Lazarus configuration.

Problems look similar to me.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Richmemo
« Reply #12 on: December 18, 2014, 07:41:17 am »
Congratulations, Richmemo users. And for the developer too, of course.

MoellerCLaus

  • Full Member
  • ***
  • Posts: 114
    • Vig Foreningsprogram
Re: Richmemo
« Reply #13 on: December 19, 2014, 04:36:42 pm »
 :) Solved and completely my own mistake.
I wanted to make an editor based on RichMemo.
So I copied the /ide/RTFDialog. After deleting these files. Installing Tortouise with link to richmemo from lazarus thrunk. It works

Thanks

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Richmemo
« Reply #14 on: December 19, 2014, 04:58:11 pm »
I wanted to make an editor based on RichMemo.
So I copied the /ide/RTFDialog. After deleting these files. Installing Tortouise with link to richmemo from lazarus thrunk. It works
you could copy the file, but you'd need to change the name.
I'm glad it works for you.

@ typo: thank you!

 

TinyPortal © 2005-2018