TTIPropertyGrid OnEditorFilter not called for sub TPersistent lazarus / 31-LCL ---------------------------------------------------------------------- guest58172 · 2015-12-12 20:25 If I inspect a TPersistent that publishes sub TPersistents, the event OnEditorFilter is not called for the TPropertyEditor matching to the publications of the sub TPersistents. see attached sample. Bug ? ---------------------------------------------------------------------- howardpc · 2015-12-13 00:19 You need to add {$M+} before the declaration of TSub to ensure all properties are correctly published. You also should make sure that you don't create a TStringList, a TSub and a TRoot in such a cavalier fashion without freeing them after use, because your code has horrible memory leaks. ---------------------------------------------------------------------- guest58172 · 2015-12-13 05:08 No, I don't need to. TSub is already a TPersistent. Anyway this doesn't solve ths issue. But I guess that you don't get the problem: OnEditorFilter allows to hide a particular property, but the event is not called for the members of sub objects. IRL this would allow me to hide some properties that are not interesting at all, but visible because inherited from TPersistent or TComponent (like .Tag or .Name). For example in this option editor (based on TTIPropertyGrid), I can't hide the property Tag because of this. ---------------------------------------------------------------------- hnb · 2015-12-14 11:10 Fixed in Sparta branch r50792 ( I don't have access to trunk :\ ): http://svn.freepascal.org/svn/lazarus/branches/free-sparta ---------------------------------------------------------------------- guest58172 · 2015-12-15 02:39 Thx for the information. ---------------------------------------------------------------------- hnb · 2015-12-31 16:01 Quote from: BBasile on December 15, 2015, 03:39:25 amThx for the information. Good news. Finally merged into trunk (r51090).