Applicationmaker
asked on
Synedit SearchEngine
I cant get the Synedit searchengine started...
I invested this lines in the finddialog
onFind event:
PROCEDURE TEditorForm.FindDialog1Fin d(Sender: TObject);
BEGIN
IF DrillplanEditHasFocus THEN
BEGIN
DrillplanEdit.SearchEngine .Pattern:= FindDialog 1.FindText ;
ShowMessage(IntToStr(Drill planEdit.S earchEngin e.FindAll(
FindDialog1.FindText)));
ShowMessage(IntToStr(Drill planEdit.S earchEngin e.Results[ 0]));
END
ELSE IF DiameterEditHasFocus THEN
BEGIN
DiameterEdit.SearchEngine. Pattern:=F indDialog1 .FindText;
DiameterEdit.SearchEngine. FindAll(Fi ndDialog1. FindText);
END;
END;
I don`t know how to get the line number where the result was found.
and i don`t know how to know if the searchengine found something.
I invested this lines in the finddialog
onFind event:
PROCEDURE TEditorForm.FindDialog1Fin
BEGIN
IF DrillplanEditHasFocus THEN
BEGIN
DrillplanEdit.SearchEngine
ShowMessage(IntToStr(Drill
FindDialog1.FindText)));
ShowMessage(IntToStr(Drill
END
ELSE IF DiameterEditHasFocus THEN
BEGIN
DiameterEdit.SearchEngine.
DiameterEdit.SearchEngine.
END;
END;
I don`t know how to get the line number where the result was found.
and i don`t know how to know if the searchengine found something.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
maybe it's just a case of a misleadingly named boolean, but:
if "IF DrillplanEditHasFocus" means something like "if DrillplanEdit.Focused", then I don't see how this code should execute. At this moment, the find dialog has the focus, so the DrillplanEdit/SynEdit cannot have it.