Hide some published inspector properties

Hello


is there a way to hide some properties shown by the inspector?. It could be really useful for me to have an event or virtual function to control which properties show for each component.

p.e

Inspector.onFilterProperty(inspected component TComponent , PropertyName)....
{
if  component implements some interface then
 ask to the interface if propertyname should be shown
}

that way the decision to show their properties would be at the component and not by the inspector.

But if there is other yet implemented solution could be useful for me too. I would like to hide some published properties but i need to have these properties to be save on disk.

All the best
ilde

Sorry.... i didnt notice about OnFilter event at Inspector :)

All the best
ilde

Hello


i tried to test OnFilter this way:

procedure my.FilterProps(Sender: TObject; Prop: TProperty;
  var Result: Boolean);
begin
    result := true;
end;

but at the properties inspector tab properties and events are shown mixed.... is that a bug?

here is the example shown:

http://postimg.org/image/mb6kfs2cz/

All the best
ilde

Result might come predefined with true or false. If you set it to true, it will show it again. If possible, just "hide" properties (set to false) but do not set it to true.

There is another example here: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=3845