Hide some published inspector properties


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.


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

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

All the best


i tried to test OnFilter this way:

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

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

here is the example shown:


All the best

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