I am doing a lot of document searching, and need to always start at the top.
I assume it is safe to call
TRichEdit.RVData.SearchText instead of TRichEdit.SearchText, so I can specifiy the FromStart param??
Thanks in advance
How to always search from start of document
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
No, please do not use RVData's method.
You can move the caret to the beginning before the search:
You can move the caret to the beginning before the search:
Code: Select all
with RichViewEdit1 do
SetSelectionBounds(0, GetOffsBeforeItem(0), 0, GetOffsBeforeItem(0));