Title: How to hide properties in the IDE
unit HideAboutProps;
// Declare a Property-Category-Class
type
TAboutPropCategory = class(TPropertyCategory)
// Give it a name and a description
// Namen und Beschreibung vergeben
class function Name: string; override;
class function Description: string; override;
end;
procedure Register;
implementation
// Register this new Property Category in the Delphi-IDE
procedure Register;
begin
RegisterPropertyInCathegory(TAboutPropCategory, 'About');
end;
// Implementation of the two class functions from above
class function TAboutPropCategory.Name: string;
begin
Result := 'About';
end;
class function TAboutPropCategory.Description: string;
begin
// As you want it ...
Result := 'Gives information about the author.';
end;
// To use this new category, you only have to include this unit in a package and recompile it.
// If you want, you now can hide all properties called 'About' from being displayed
// in the object inspector.