I may have the wrong end of the stick, as I am not totally sure what you are
after, but...
If FormX does not have the lable or caption, you cannot write code (in FormX) to
modify the lable or caption that it does not know about.
Regarding the setting / Getting of a Property - you can write access methods for
Properties, which if desired, you can override in descendant Forms. That should
produce the desired effect.
Regards
Paul McKenzie
=========================
Paul McKenzie
Jetbet II Developer
=========================
[EMAIL PROTECTED]
Ph: (04) 576-6822
T.A.B. National Office
106-110 Jackson Street
Petone
New Zealand
____________________Reply Separator____________________
Subject: [DUG]: Basic OO/Delphi Question
Author: [EMAIL PROTECTED]
Date: 24/04/2001 11:32
I have a form FormX that I want to use in a number of projects.
In, say, Project A I have a form FormA with a label and caption.
When a change is made to some list or variable on FormX I want to modify
the
FormA.label.caption
I don't want to do this by writing FormA.label.caption := 'Foo'; in my
FormX
unit
because that won't work when I want to do a similar thing from FormX to
FormB in ProjectB.
I know that being able to do this is the benefit of OO but I'm stuck in my
procedural mindset.
I can make the value I change a property of FormX - but how does FormA or
FormB know the property has changed?
I'm sure it's simple - just can't see it.
Ideas please.
TIA
Mike
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"(See attached file: att1.eml)
att1.eml