Recent

Author Topic: RichMemo.Search always return -1  (Read 2176 times)

radhanasiri

  • Newbie
  • Posts: 2
RichMemo.Search always return -1
« 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.)

« Last Edit: September 10, 2019, 08:35:58 am by radhanasiri »

Thaddy

  • Hero Member
  • *****
  • Posts: 14213
  • Probably until I exterminate Putin.
Re: RichMemo.Search always return -1
« Reply #1 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.
« Last Edit: September 10, 2019, 10:40:10 am by Thaddy »
Specialize a type, not a var.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

rvk

  • Hero Member
  • *****
  • Posts: 6112
Re: RichMemo.Search always return -1
« Reply #3 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.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: RichMemo.Search always return -1
« Reply #4 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
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018