Greetings Sergey,
Is there a SearchTextW or something similar that returns bounds instead of selecting. I am working on a search dialog that deals with formatting and other things. What I need to do basically is get the item in search bounds or its index and test it against various font styles etc.
SearchTextW that returns bounds or itemindex instead of selecting
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: SearchTextW that returns bounds or itemindex instead of selecting
Is the text formatted? Selection requires formatted document.
Re: SearchTextW that returns bounds or itemindex instead of selecting
It is formatted
SearchTextW is working well the only thing is I would like to not have to do RichViewEdit.Deselect is all instead I would rather know the bounds
StartItem, StartOffs, EndItem, EndOffs. If I do some more research I may be able to build this.
SearchTextW is working well the only thing is I would like to not have to do RichViewEdit.Deselect is all instead I would rather know the bounds
StartItem, StartOffs, EndItem, EndOffs. If I do some more research I may be able to build this.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: SearchTextW that returns bounds or itemindex instead of selecting
Sorry, I misread the question.
Currently, SearchText can only select text. But I think it makes sense to add OnTextFound event, where you can do custom processing instead of selecting.
I'll include it in the next update (not in the today's update). Let me know if you need it urgently.
Currently, SearchText can only select text. But I think it makes sense to add OnTextFound event, where you can do custom processing instead of selecting.
I'll include it in the next update (not in the today's update). Let me know if you need it urgently.
Re: SearchTextW that returns bounds or itemindex instead of selecting
Not urgent but it will help with a Search and Replace like MS Word has that is also format based. Thanks!
Re: SearchTextW that returns bounds or itemindex instead of selecting
Further info here?
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: SearchTextW that returns bounds or itemindex instead of selecting
I implemented OnTextFound event. If you want, I can send changed files to you by email.
A release will be later.
A release will be later.
Re: SearchTextW that returns bounds or itemindex instead of selecting
That would be great thank you if you send it by email
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: