In TControl the property Color is protected.
TEdit publish it.
What I'm saying is that you can use the property Color, if you tell Delphi the object
is a TEdit.
You know the property exists, what you are doing is "publishing" it.
You could use any Class that publish the property.
----------
Desde: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
Enviado el: miércoles 13 de octubre de 1999 16:15
Para: Multiple recipients of list delphi
Asunto: RE: [DUG]: Changing control style
Quoting Julian Cellini <[EMAIL PROTECTED]>:
> I think you could typecast to a TEdit ALL the controls.
> I'm quite sure the propertiy is in the same place in all the controls\
But the controls aren't all TEdits.
I'm not sure how relevant this is, but even though they are stored in the
Controls array as TControl, they are still TDBEdit etc. This is because
TControl refers to subclasses through inheritance as well as actual TControl
objects. Whether the typecast would be valid I do not know, I suspect you would
have to typecast to an object in the same hierarchy.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
application/ms-tnef