delphi - I need help on how to implement class that can be shown in object Inspector -
i have
... tdisppitch = class private ilinesize: integer; ilinecolor: tcolor; bdisplayaccent: boolean; bvisible: boolean; published property linesize : integer read ilinesize write ilinesize; ...etc end; ...
and wanted feature shown in object insepector edit settings.
i try adding
property disppitch: tdisppitch read fdisppitch write fdisppitch.
the disppitch can shown cannot see properties. linesize, linecolor etc.
you must derive class tpersistent
, or descendant, in order make available in object inspector:
tdisppitch = class(tpersistent) private ... published property ... ... end;
from delphi documentation:
tpersistent ancestor objects have assignment , streaming capabilities.