wxSTC FindText question

Hi,

I ran into some trouble using wxStyledTextCtrl.FindText(). I am retrieving
data and flags from a
wxFindReplaceDialog/wxFindDeplaceData couple. So far so good.

The trouble I'm getting is with the "caseSensitive" and "wholeWord" flags
for the FindText method of the wxSTC.
The documented call "int FindText(int minPos, int maxPos, const wxString&
text, bool caseSensitive, bool wholeWord) (as seen on
http://webpages.charter.net/edreamleo/out2.htm#wxstyledtextctrlfindtext)
doesn't seem be correct, so I guessed I needed to or'ing the flags together.
Unfortunately, that doesn't give the desired effect either. Anybody ever ran
into that problem?

This is on winxp, wxPython 2.4.2u for python 2.3.3

Any pointers much appreciated.

Regards
Vincent Wehren

vincent wehren wrote:

Hi,

I ran into some trouble using wxStyledTextCtrl.FindText(). I am retrieving
data and flags from a
wxFindReplaceDialog/wxFindDeplaceData couple. So far so good.

The trouble I'm getting is with the "caseSensitive" and "wholeWord" flags
for the FindText method of the wxSTC.
The documented call "int FindText(int minPos, int maxPos, const wxString&
text, bool caseSensitive, bool wholeWord) (as seen on
http://webpages.charter.net/edreamleo/out2.htm#wxstyledtextctrlfindtext)
doesn't seem be correct, so I guessed I needed to or'ing the flags together.
Unfortunately, that doesn't give the desired effect either. Anybody ever ran
into that problem?

Here is a better set of STC docs:

http://www.pyframe.com/stc/searching.html#findtext

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!