Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to retrieve the TControl of a user-defined sub property....

2 views
Skip to first unread message

David HAROUCHE

unread,
May 15, 2008, 4:13:11 PM5/15/08
to
Is there something like :

function GetControlOf(var _a:TPersistent):TControl;

where _a is either a property or a sub-property ?

DH


Marc Rohloff [TeamB]

unread,
May 15, 2008, 4:44:43 PM5/15/08
to

No

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com

Remy Lebeau (TeamB)

unread,
May 15, 2008, 5:11:33 PM5/15/08
to

"David HAROUCHE" <met...@hotmail.com> wrote in message
news:482c...@newsgroups.borland.com...

> Is there something like :
>
> function GetControlOf(var _a:TPersistent):TControl;
>
> where _a is either a property or a sub-property ?

No. TPersistent does not have any link available to the containing control,
if there is even such a control used in the first place. So there is no way
for the RTL to implement such a function. Individual TPersistent
descendant classes must manually expose their own properties for that kind
of link.


Gambit


David HAROUCHE

unread,
May 15, 2008, 6:02:55 PM5/15/08
to
I stored the TControl if any in a base class inherited from TPersistent...

DH


0 new messages