Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: radhanasiri on September 10, 2019, 08:29:38 am

Title: RichMemo.Search always return -1
Post by: radhanasiri on September 10, 2019, 08:29:38 am
I try the /richmemo/samples/search/testsearch.lpi
RichMemo.Search always return -1

:)

Lazarus 2.0.4 
x86_64-linux-gtk2
Ubuntu Studio 19.04 XFCE

:) I am learning to create  guitar lyric & chord software as a hobby,
and looking for rtf component that would fit better (RichMemo, SynEdit,.. etc.)

Title: Re: RichMemo.Search always return -1
Post by: Thaddy on September 10, 2019, 10:38:30 am
Well, I have some old code where you can learn from:
http://members.chello.nl/t.koning8/chordfinder.zip

That is windows only and uses KOL, but the drawing routines and logic are portable.
And it is free...and contains full sourcecode.
Title: Re: RichMemo.Search always return -1
Post by: dbannon on September 10, 2019, 01:29:06 pm
Sounds like -

https://wiki.lazarus.freepascal.org/RichMemo/WorkArounds#Search.28.29_fails_under_Linux

to me.



Title: Re: RichMemo.Search always return -1
Post by: rvk on September 10, 2019, 01:42:38 pm
Sounds like -
https://wiki.lazarus.freepascal.org/RichMemo/WorkArounds#Search.28.29_fails_under_Linux
to me.
Maybe you can add the patch to the bugreport, as you suggested. Then Dmitry can just apply it. Bugreports with patches seem to be faster implemented than without. And this report is from 2017 so it's strange it isn't fixed yet.
Title: Re: RichMemo.Search always return -1
Post by: dbannon on September 11, 2019, 12:53:03 am
Maybe you can add the patch to the bugreport, as you suggested. Then Dmitry can just apply it. Bugreports with patches seem to be faster implemented than without. And this report is from 2017 so it's strange it isn't fixed yet.

Dmitry ? Have you seen the Cocoa fixes that went into 2.0.4 ?   I think Dmitry has been very busy .....

I'll see if I can turn that 'fix' into a patch, along with some of the  other ones mentioned on the Wiki page. I put that page together when I was considering RichMemo for tomboy-ng, but later decided that KControls was a lot more complete. So I have not been following RichMemo's progress. I won't be able to do it for a month or so, travelling at present, no Mac available to test against.

Davo
TinyPortal © 2005-2018