View Full Version : Rich Text Object Suggestion
pjborg
01-06-2008, 04:45 PM
The RichText.FindText action returns the start and end positions of the match.
I think a corresponding RichText.ScrollToPosition action would be useful.
Unless I'm mistaken, there doesn't seem to be a way to do that.
Thanks,
pj
Darryl
01-07-2008, 10:42 AM
Thanks for the suggestion, I've submitted it to be considered. REF: 17112
Depending what you are trying to do, you may find that the "RichText.SetSelection" action is useful in this situation, however that is really only if you are looking to highlight the word versus just having it in view.
pjborg
01-07-2008, 02:22 PM
Yes, the "RichText.SetSelection" action is a bit different than what I had in mind.
It seems that you might be able to have the "RichText.FindText" action return the line number as well as the start and end positions. Then there would be no need for a new action.
Thanks.
Darryl
01-08-2008, 09:28 AM
Yes, you're right. I'll update the info with that particular suggestion.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.