stc.FindText - backwards?

I never use FindText, if not at least only for a quick one shot find.
I always use SearchInTarget, defining first the SetTargetStart and SetTargetEnd, and it works fine for me.

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

::-----Messaggio originale-----
::Da: Ed Leafe [mailto:ed@leafe.com]
::Inviato: giovedì 12 maggio 2005 22.35
::a: wxPython-users@lists.wxwidgets.org
::Oggetto: Re: [wxPython-users] stc.FindText - backwards?
::
::On May 12, 2005, at 2:31 PM, Robin Dunn wrote:
::
::>> When working with a StyledTextControl and a
::wx.FindReplaceDialog,
::>> I'd like to be able to implement the search direction option.
::>> However, FindText() only takes a start and ending
::position, and not a
::>> direction. I can do a FindText() from the beginning of the
::text and
::>> repeat until I find the last instance before the current position,
::>> but I'm wondering if there is an easier way.
::>
::> Yep. Just reverse your minPos and maxPos parameters.
::
:: Does that really work for you? In my tests, it always
::returns the
::first position *past* the max, whether I pass that value as the first
::or second parameter.
::
:: ___/
:: /
:: __/
:: /
:: ____/
:: Ed Leafe
:: http://leafe.com/
:: http://dabodev.com/
::
::
::---------------------------------------------------------------------
::To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
::For additional commands, e-mail:
::wxPython-users-help@lists.wxwidgets.org
::