On Tue, 3 Oct 2006, Mattias Gaertner wrote:

> On Mon, 2 Oct 2006 23:41:43 +0200
> "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> 
> > On 02/10/06, Marc Weustink <[EMAIL PROTECTED]> wrote:
> > > The observer pattern will work here. Every descendant "subscribes"
> > > itself to a change notification. IIRC, the ancestor knows when
> > > something is changed (you need this enyway to reflect changes in
> > > the desinger). So when changes the ancestor notifies its observers,
> > > which reload them selves. That the ancestor can be edited in
> > > severla ways, doesn't matter in this case.
> 
> Yes.
> Note: The IDE is notified after something has changed, not before.
> 
> 
> > > Marc
> > 
> > Ok, and any idea how we can optomize the "subscribers" Update method,
> > so they can know what changed.  Normally the "subject" calls the
> > Update method of all it's "subscribers" passing itself as a parameter.
> >  Maybe we could pass a second parameter (data object - maybe a list of
> > some sorts) containing the names of the components that changed. Even
> > a TStringList might do.  Just another thought.
> 
> Changing a property can change various others as well. For example
> changing the Width can change child controls, siblings and parent.

Yes, but applying this change to the child form should result in exactly the
same consequences, unless the affected components were changed already... ?

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to