View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002217 | JEDI VCL | 00 JVCL Components | public | 2004-10-12 13:41 | 2004-10-12 14:40 |
Reporter | anonymous | Assigned To | user72 | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.00 RC 1 | |||
Summary | 0002217: JvFindReplace doesn't start ReplaceAll operation form caret position | ||||
Description | It's usual to start a ReplaceAll option from the current caret position. JvFindReplace ignores the caret position. In ReplaceAll, replace FoundPos := FindInText(Txt, SearchText, 0, TLen, True); with FoundPos := FindInText(Txt, SearchText, EditControl.SelStart + EditControl.SelLength, TLen, True); | ||||
Additional Information | procedure TForm1.Button1Click(Sender: TObject); var JvFindReplace: TJvFindReplace; begin Edit1.SetFocus; Edit1.Text := ' me abc me '; Edit1.SelStart := 5; Edit1.SelLength := 1; JvFindReplace := TJvFindReplace.Create(self); try JvFindReplace.EditControl := Edit1; JvFindReplace.ShowDialogs := false; JvFindReplace.ReplaceAll('me','z'); finally JvFindReplace.Free; end; end; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-10-12 13:41 | anonymous | New Issue | |
2004-10-12 14:40 |
|
Status | new => resolved |
2004-10-12 14:40 |
|
Resolution | open => fixed |
2004-10-12 14:40 |
|
Assigned To | => user72 |
2004-10-12 14:40 |
|
Note Added: 0005366 |