Links
EControl Syntax Editor SDK
TSyntaxMemo.OnIncSearchChange Property

Occurs when state or search string of incremental search changes.

property OnIncSearchChange: TIncSearchChangeEvent;

Write an OnIncSearchChange event handler to take specific action whenever the state or search string of the incremental search engine changes. State specifies what type of event occurs.

State 
Event 
isStop 
Incremental search is stopped 
isStart 
Incremental search is started 
isStrChange 
Incremental search string IncSearchStr changes 

You may use this event to display current search string on the status bar.

procedure TSyntEditMain.SyntaxMemo1IncSearchChange(Sender: TObject;
  State: TIncSearchState);
begin
  if State <> isStop then
   SB.SimpleText := 'Search for: ' + (Sender as TSyntaxMemo).IncSearchStr
  else
   SB.SimpleText := '';
  SB.SimplePanel := State <> isStop;
end;
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!