[Solved] TTreeFilterEdit.OnFilterNode works bad lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2023-05-30 07:34 I added my handler, to allow filtering by N space-separated words in the filter field. My handler: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function TfmMain.CodeTreeFilter_OnFilterNode(ItemNode: TTreeNode; out Done: Boolean): Boolean;var  SNodeText: string;  SItem: string;  Sep: TATStringSeparator;begin  SNodeText:= LowerCase(ItemNode.Text);  Sep.Init(CodeTreeFilter.FilterLowercase, ' ');  while Sep.GetItemStr(SItem) do  begin    if Pos(SItem, SNodeText)=0 then    begin      Done:= true;      exit(false);    end;  end;  Done:= true;  Result:= true;end;     when at least one space-separated word don't match, I return False and set Done=true. If all words are present - i return True and set Done=true. Is this OK logic? But result is bad! Lazarus 2.3.0 (rev main-2_3-3327-g27bf5d2ba7) FPC 3.2.3 x86_64-linux- gtk2 Maybe TreeFilterEdit event is buggy? ---------------------------------------------------------------------- AlexTP · 2023-05-30 08:01 I tried to not set Done to True. but again: filtering by n words don't work then (it filters only by 1st word). I am looking at the example of TreeFilterEdit which filters by space-separated words. ---------------------------------------------------------------------- JuhaManninen · 2023-05-30 08:39 Quote from: AlexTP on May 30, 2023, 09:34:33 amLazarus 2.3.0 (rev main-2_3-3327-g27bf5d2ba7) FPC 3.2.3 x86_64-linux-gtk2 That is from 6 of May. Please update to latest revision. ---------------------------------------------------------------------- AlexTP · 2023-05-30 11:49 Updated, works now.