Hey - great ideas folks. I did not realize you could expose private fields
via an interface on a decendent. I'll give it a go later today.
Thanks
Stephen
---
New Zealand Delphi Users group - Delphi List - [EMAIL
I have a need to add a couple of properties and an interface to all my
controls. ATM I'm creating descendants and adding then to each class, but
it would be much neater to insert a new ancestor containing the properties
between TWinControl and TGraphicControl and TControl.
On a first attempt I
[Reply]
HI All,
Stephen Bertram, [EMAIL PROTECTED] wrote
I have a need to add a couple of properties and an interface to all my
controls. ATM I'm creating descendants and adding then to each class, but
it would be much neater to insert a new ancestor containing the properties
between
:[EMAIL PROTECTED]]
Sent: Thursday, 15 February 2001 12:49 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Mucking with Controls.pas
[Reply]
HI All,
Golden rule is not to mess with the VCL.
I guess the next best thing is to introduce the common attributes at the
first level
;
property
SubObject: TSubObject read FSubObject write FSubObject implements
ImyInterface
end
- Original Message -
From: Stephen Bertram [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Thursday, 15 February 2001 12:11
Subject: [DUG]: Mucking
-
From: Neven MacEwan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 15 February 2001 5:11 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Mucking with Controls.pas
Stephen
Rather than inserting an ancestor, why not define an interface
(this enforces implementation
Yes - I'm already using an interface to propagate changes to all controls
at
design time. As yet I haven't figured out how to effectively to implement
methods by delegation where those methods refer to private fields.
Any examples would be a help.
One way of doing this is to have two
Stephen
Thats a problem!, implement another Int that exposes them?
Neven
- Original Message -
From: Stephen Bertram [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Thursday, 15 February 2001 17:25
Subject: RE: [DUG]: Mucking with Controls.pas
Yes