View Issue Details

IDProjectCategoryView StatusLast Update
0006411JEDI VCL00 JVCL Componentspublic2015-09-14 11:24
ReporterhusteAssigned To 
Status feedbackResolutionopen 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0006411: JvRichEdit.FindText() does not work properly with stBackward turned on
DescriptionLet StartPos be the current SelStart:
According to the documentation of JvRichEdit, this should work to find a given Text backwards:

In fact, the EM_FINDTEXTEX message used in FindText works differently: cpMin and cpMax are reversed. See remarks on

Thus, I changed the code in FindText in my local installation to:
  with Find.chrg do
    if stBackward in Options then
      cpMax := StartPos;
      cpMin := cpMax + Abs(Length);
      cpMin := StartPos;
      cpMax := cpMin + Abs(Length);
  if RichEditVersion >= 2 then

TagsNo tags attached.



2015-09-14 11:24

administrator   ~0021191

Please provide the zipped sources of a sample application showing this

Issue History

Date Modified Username Field Change
2015-06-01 13:25 huste New Issue
2015-09-14 11:24 obones Note Added: 0021191
2015-09-14 11:24 obones Status new => feedback