I use RichViewEditClean.SearchTextW('<bkm>', [rvseoMatchCase, rvseoDown, rvseoMultiItem]) = False
to locate tags (there are different variations, but we will use <bkm> for now.)
once that tag is found I use
RichViewEditClean.GetSelectionBounds(rsiNo, rsiOffs, reiNo, reiOffs, TRUE);
to store its location.
All of this works quite well until. A tag is found in a table. (SearchTextW works well with the table.)
How can I store its location so I can retrieve it to work with it?
Is it how I am using GetSelectionBounds ?
SearchTextW & GetSelectionBounds
Re: SearchTextW & GetSelectionBounds
I see I forgot TopLevelEditor is there a way to make it be that for a function? Without adding a bunch?
like
RichViewEdit := RichViewEdit.TopLevelEditor; ?
like
RichViewEdit := RichViewEdit.TopLevelEditor; ?
Re: SearchTextW & GetSelectionBounds
I got this one figured out thanks to your past help.
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: SearchTextW & GetSelectionBounds
Use the functions from RVLinear.pas: RVGetSelection and RVSetSelection.
They can store and restore selection in table cells.
They can store and restore selection in table cells.