@Remy Lebeau Means nothing to me
It means you can register the
THiddenPropertyEditor class for the property you want to hide at design-time (it will still be available at runtime), eg:
unit MyTimer;
{$mode objfpc}{$H+}
interface
uses
...
type
TMyTimer = class(TTimer)
...
end;
procedure Register;
implementation
{$R MyTimer.res}
uses
PropEdits;
...
procedure Register;
begin
RegisterComponents('Misc', [TMyTimer]);
RegisterPropertyEditor(TypeInfo(Boolean), TMyTimer, 'Enabled', THiddenPropertyEditor);
end;
end.
But, using the approach of deriving
TMyTimer from
TCustomTimer and NOT promoting the
Enabled property to
published is a better way to go. It also hides the
Enabled property at runtime, too. I wasn't aware that FreePascal had
TCustomTimer (Delphi doesn't).