How to keep tlistviewitem selected when not in focus lazarus / 8-Other ---------------------------------------------------------------------- tortho · 2007-01-31 08:57 Hi, I'm trying to make some sort of dictionary program. I have a TListView with the words in it, which it gets from a stinglist ("wordlist"). the word to search for is in an edit box, and i want to let the program "scroll" down the list, as i type more and more chars into it, and stop when the correct word is there or the next char is not present. I also want to have the row to be selected to easy see the translated word in column2. The code is as follows and does not work. procedure TForm1.ESearchWordChange(Sender: TObject); var    I:Integer;    SearchWord:WideString; begin   if LVWordList.Items.Count=0 then   ShowMessage('No Words In Dictionary')   else     SearchWord:=ESearchWord.Text;     begin         for I:=0 to WordList.Count -1  do             begin                  if Pos(SearchWord,WordList) > 0 then                  LVWordList.Items.Item.Selected:=TRUE;             end;     end; end; Also is there some way to search directly in the ListView? or do i have to do it in my stinglist? Is there other components which are more suitable for this?