Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: Trenatos on March 07, 2018, 04:11:00 am

Title: Download location?
Post by: Trenatos on March 07, 2018, 04:11:00 am
I'm trying to get a hold of the RichMemo package but the online package manager doesn't have it, the wiki link is broken (404), and the only other one I find is an ancient SourceForge one from 2009.

Does anyone know where I can find it?
Title: Re: Download location?
Post by: skalogryz on March 07, 2018, 04:18:17 am
do you mean this link (https://havefunsoft.com/share/richmemo.zip) is broken?
Title: Re: Download location?
Post by: Trenatos on March 07, 2018, 04:34:32 am
Nope that one seems to work, I mean this one: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/richmemo

Thanks skalogryz
Title: Re: Download location?
Post by: GetMem on March 07, 2018, 05:26:49 am
Quote
@Trenatos
I'm trying to get a hold of the RichMemo package but the online package manager doesn't have it
See attached image.
Title: Re: Download location?
Post by: wp on March 07, 2018, 10:01:13 am
Nope that one seems to work, I mean this one: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/richmemo

https://sourceforge.net/projects/lazarus-ccr/files/RichMemo/ links to the last released version on CCR (2009 --> outdated)
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/ links to the development version in svn (last change June 2017).

I updated the link on the wiki page.
Title: Re: Download location?
Post by: Trenatos on March 08, 2018, 12:49:28 am
GetMem, I'm having issues with the online package manager, maybe it didn't update properly?

Whatever the reason, it wasn't available.

Thanks for updating the links wp.
Title: Re: Download location?
Post by: GetMem on March 08, 2018, 05:23:25 am
Quote
GetMem, I'm having issues with the online package manager, maybe it didn't update properly?
What issues exactly? You cannot see package RichMemo in the list? Please be more specific.
Title: Re: Download location?
Post by: Trenatos on March 09, 2018, 03:17:02 am
I was running an old version of Lazarus (1.6) and the OPM was acting up.
Title: Re: Download location?
Post by: JuhaManninen on March 09, 2018, 09:32:49 am
I was running an old version of Lazarus (1.6) and the OPM was acting up.
Don't use an old version of Lazarus if you need OPM.
Title: Re: Download location?
Post by: Shebuka on May 13, 2019, 01:51:32 pm
do you mean this link (https://havefunsoft.com/share/richmemo.zip) is broken?

Hello, this link is not working, the page says:
Quote
Not Found
The requested URL /share/richmemo.zip was not found on this server.

Is there a new place to download the snapshot zip?
Title: Re: Download location?
Post by: wp on May 13, 2019, 04:45:12 pm
do you mean this link (https://havefunsoft.com/share/richmemo.zip) is broken?
havefunsoft.com? Does not sound very trustworthy. Maybe it's better that it is not working any more.

Is there a new place to download the snapshot zip?
As mentioned above: Did you try the Online-Package-Manager? The download and component is working - I have TRichMemo in my Lazarus (Windows). There is an issue in Linux/gtk2, though (https://bugs.freepascal.org/view.php?id=35380)

I updated the download links on the wiki site; there you can also find instructions how to obtain a snapshot of the current development version.
Title: Re: Download location?
Post by: skalogryz on May 13, 2019, 05:25:34 pm
havefunsoft.com? Does not sound very trustworthy. Maybe it's better that it is not working any more.
not trustworthy?! i've even purchased a certificate :)

anyways, it's updated and the snapshot should now be available.
Title: Re: Download location?
Post by: wp on May 13, 2019, 05:48:52 pm
havefunsoft.com? Does not sound very trustworthy. Maybe it's better that it is not working any more.
not trustworthy?! i've even purchased a certificate :)

anyways, it's updated and the snapshot should now be available.
Sorry :-[. I put the link back into the wiki.

If time permitting could you also have a look at the gtk2 issue that I mentioned above?
Title: Re: Download location?
Post by: skalogryz on May 14, 2019, 03:27:34 am
try this patch! see if it helps
Code: Diff  [Select]
  1. Index: gtk2/gtk2richmemo.pas
  2. ===================================================================
  3. --- gtk2/gtk2richmemo.pas       (revision 6912)
  4. +++ gtk2/gtk2richmemo.pas       (working copy)
  5. @@ -135,7 +135,7 @@
  6.  
  7.    { TGtk2RichMemoStrings }
  8.  
  9. -  TGtk2RichMemoStrings = class(TStrings)
  10. +  TGtk2RichMemoStrings = class(TGtk2MemoStrings)
  11.    protected
  12.      FGtkText : PGtkTextView;
  13.      FGtkBuf: PGtkTextBuffer;
  14. @@ -562,7 +562,7 @@
  15.  constructor TGtk2RichMemoStrings.Create(TextView: PGtkTextView;
  16.    TheOwner: TWinControl);
  17.  begin
  18. -  inherited Create;
  19. +  inherited Create(TextView, TheOwner);
  20.    if TextView = nil then RaiseGDBException(
  21.      'TGtk2RichMemoStrings.Create Unspecified Text widget');
  22.    FGtkText:= TextView;
  23.  

The reason for gtk2 RichMemoStrings not to use MemoStrings, is due to the of timers to handle cursor moves.
RichMemo strings doesn't use timer, so far it worked just fine.
Title: Re: Download location?
Post by: wp on May 14, 2019, 09:36:42 am
Yes, no more crashes when this is applied. Thank you.
Title: Re: Download location?
Post by: skalogryz on May 14, 2019, 04:09:06 pm
no crashes is good. What about regressions?
Title: Re: Download location?
Post by: wp on May 14, 2019, 11:37:08 pm
I don't think so. I'm not a TRichMemo "power user", though, and have only one program which uses it - but this seems to be correct now on Linux/gtk2/64bit.