Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-02

Need a good replacement for TMemo

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Timothy Groves

I am writing a new version of my document management system, called ficmake.? I want to stop using TMemo as the built-in text editor, because it lacks Undo, or the ability to display line numbers, and I don't know how to fix that.? But SynEdit lacks word wrap, which is just as much of a deal breaker, and RichMemo won't work.? (It will compile in, but then Lazarus crashes on startup with an Access Violation.)

Any suggestions?

Juha Manninen
to Timothy Groves

On Tue, Feb 6, 2024 at 11:31?PM Timothy Groves via lazarus <

Show quoted text 5 lines
wrote: ... and RichMemo won't work. (It will compile in, but then Lazarus crashes on startup with an Access Violation.)

I updated lazarus-ccr repo and tried to install the RichMemo_design package. Lazarus does not crash but the RichMemo component does not show up either. It should be in the 'Common Controls' palette page.

I tested with Lazarus trunk + LCL-GTK2 and LCL-QT5 widgetsets. For LCL-GTK2 I had to add {$define RMLCLTRUNK} in unit Gtk2RichMemo. It is used for function GetWidgetInfo() which was last edited by Mark in 2010. Maybe an IFDEF was needed for Lazarus trunk some 14 years ago but now the code should be updated.

Does RichMemo installation work for somebody?

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/00621b0a/attachment.htm>

Werner Pamler
to Juha Manninen
Juha Manninen wrote 20 lines
On Tue, Feb 6, 2024 at 11:31?PM Timothy Groves via lazarus wrote: ... and RichMemo won't work.? (It will compile in, but then Lazarus crashes on startup with an Access Violation.) I updated lazarus-ccr repo and tried to install the RichMemo_design package. Lazarus does not crash but the RichMemo component does not show up either. It should be in the 'Common Controls' palette page. I tested with Lazarus trunk + LCL-GTK2 and LCL-QT5 widgetsets. For LCL-GTK2 I had to add {$define RMLCLTRUNK} in unit Gtk2RichMemo. It is used for function GetWidgetInfo() which was last edited by Mark in 2010. Maybe an IFDEF was needed for Lazarus trunk some 14 years ago but now the code should be updated. Does RichMemo installation work for somebody? Juha

Yes. But you should not use the version in the CCR repository. You probably did not see the "readme.txt" which states that the ccr version is no longer maintained, development has been moved to github: https://github.com/skalogryz/richmemo. Or when you use the OPM version it will be working, too.

I agree that having the out-dated richmemo in CCR is misleading. There are two options: I could delete that these files in OPM completely and keep only the readme, or I could copy the current github files over them (but I do not like the next step to become maintainer of the ccr version of richmemo...).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/ebbcd68d/attachment.htm>

Juha Manninen
to Werner Pamler

On Wed, Feb 7, 2024 at 11:30?AM Werner Pamler via lazarus <

Show quoted text 8 lines
wrote: Yes. But you should not use the version in the CCR repository. You probably did not see the "readme.txt" which states that the ccr version is no longer maintained, development has been moved to github: https://github.com/skalogryz/richmemo. Or when you use the OPM version it will be working, too.

Oops yes. Now I remember it was mentioned somewhere also earlier. I will test the GitHub / OPM version later.

I agree that having the out-dated richmemo in CCR is misleading. There are

Show quoted text 5 lines
two options: I could delete that these files in OPM completely and keep only the readme, or I could copy the current github files over them (but I do not like the next step to become maintainer of the ccr version of richmemo...).

I guess you mean delete from CCR. Yes please. Having such duplicates will always cause problems but won't bring any benefits.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/cfa2f30a/attachment.htm>

John Landmesser
to Juha Manninen: On Tue, Feb 6, 2024 at 11:31?PM Timothy Groves via lazarus < I updated lazarus-ccr repo…
Juha Manninen wrote 22 lines
On Tue, Feb 6, 2024 at 11:31?PM Timothy Groves via lazarus wrote: ... and RichMemo won't work.? (It will compile in, but then Lazarus crashes on startup with an Access Violation.) I updated lazarus-ccr repo and tried to install the RichMemo_design package. Lazarus does not crash but the RichMemo component does not show up either. It should be in the 'Common Controls' palette page. I tested with Lazarus trunk + LCL-GTK2 and LCL-QT5 widgetsets. For LCL-GTK2 I had to add {$define RMLCLTRUNK} in unit Gtk2RichMemo. It is used for function GetWidgetInfo() which was last edited by Mark in 2010. Maybe an IFDEF was needed for Lazarus trunk some 14 years ago but now the code should be updated. Does RichMemo installation work for somebody? Juha

Please test RichMemo for Linux AND Windows!

Long ago i tried to use RichMemo that worked for windows but not for linux! -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/fa5ac585/attachment.htm>

Juha Manninen
to John Landmesser

On Wed, Feb 7, 2024 at 2:46?PM John Landmesser via lazarus <

Show quoted text 6 lines
wrote: Please test RichMemo for Linux AND Windows! Long ago i tried to use RichMemo that worked for windows but not for linux!

I cloned the GitHub repo (https://github.com/skalogryz/richmemo) and installed RichMemo.
Now the code compiles also with LCL-GTK2 but still the component does not show up.
Tested only with Linux so far.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/21e7648c/attachment.htm>

Werner Pamler
to Juha Manninen
Juha Manninen wrote 13 lines
On Wed, Feb 7, 2024 at 2:46?PM John Landmesser via lazarus wrote: Please test RichMemo for Linux AND Windows! Long ago i tried to use RichMemo that worked for windows but not for linux! I cloned the GitHub repo (https://github.com/skalogryz/richmemo) and installed RichMemo. Now the code compiles also with LCL-GTK2 but still the component does not show up. Tested only with Linux so far.

Strange. Tested this successfully this afternoon with Mint, and now with Manjaro and cocoa: can compile and run the sample projects (no thorough tests, though).

What "does not show up mean"? No icon on the component palette? In this case you probably missed to install the designtime package which is a bit hidden in the "ide" folder among all the interface folders. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240207/2ab6e936/attachment-0001.htm>

Juha Manninen
to Werner Pamler

On Thu, Feb 8, 2024 at 12:18?AM Werner Pamler via lazarus <

Show quoted text 6 lines
wrote: What "does not show up mean"? No icon on the component palette? In this case you probably missed to install the designtime package which is a bit hidden in the "ide" folder among all the interface folders.

Correct, there is no RichMemo icon on the component palette. Not found with the component list either.
I installed the designtime package and saw the line

  RegisterComponents('Common Controls', [TRichMemo]);

Maybe my earlier experiments screwed the system somehow. I will test more later ...

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240208/78f7be79/attachment.htm>