Page 1 of 1

TrvActionFind search in the TRichView component

Posted: Tue Nov 28, 2017 4:10 am
by artsnk
Good day.
I'm trying to use the trial version of 16.15.2, the search in the TRichViewEdit component is done successfully, everything is fine.
work example
rv:=TrvActionFind.Create(owner);
rv.ExecuteTarget(RichViewEdit1);
also successfully opens the search dialog via ActionList-RVE Edit-TrvActionList

However, when trying to search in the TRichView dialog does not open, or when using the code
rv:=TrvActionFind.Create(owner);
rv.ExecuteTarget(RichViewEdit1);
an exception occurs.
What am I doing wrong?

Thank you.

Re: TrvActionFind search in the TRichView component

Posted: Tue Nov 28, 2017 6:28 am
by Sergey Tkachenko
In the current version, all RichViewActions work only with TRichViewEdit.
You can use read-only TRichViewEdit instead of TRichView (assign ReadOnly = True)