published
property AutoSize : boolean read FAutoSize;
Read only properties don't appear in the object inspector.
John Elrick
"Howard Moon" <hm...@landstar.com> wrote in message
news:8kf914$7u...@bornews.borland.com...
I believe the other way to do it is attach a nil property editor - in your Register procedure:
RegisterPropertyEditor(TypeInfo(Boolean), TMyImageDescendent, 'AutoSize', nil);
Roger Morton
roger....@dial.pipex.com
Guido Geurts <g...@adtechno.be> wrote in message
news:396B348C...@adtechno.be...
> try redeclaring it in the public section in stead of in the published
section.
>
> something like
> TMyImage = class(TImage)
> public
> property AutoSize;
> publised
> end;
>
> if this works, then do not forget to set the property to TRUE in the
creator.
>
> Howard Moon wrote:
>
-Howard
As posted by Jeff Overcash somewhere else:
You can not reduce visibility of a property. To just hide it from the
ObjectInspector register a nil property editor for that property. In all
other
respects it remains published, but won't show on the OI.
Another option would be to instead of creating your component as a
descendent of TImage, make it a descendent of TComponent and have a TImage
as a data member of the component. You can then write access methods for
just the properties you want.
Mark
Howard Moon <hm...@landstar.com> wrote in message
news:8kf914$7u...@bornews.borland.com...
You could register a nil property editor for the property. Then it will
still be streamed in and out, and remain published, but not appear in the
object inspector.
--
Rudy Velthuis