i was thinking perhaps if the code is in the precreate function it is only
created once (when the js file is compiled), rather than each time you
create a new instance of the object. which would make the instances smaller.
does that sound logical?

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
> Sent: 06 March 2001 14:58
> To: [EMAIL PROTECTED]
> Subject: RE: [Dynapi-Help] widget query
>
>
> I guess you could do it in the constructor.. but I just like it in the
> precreation.
>
> In any case it should be done before the precreation is finished
> (so either
> in constructor or precreate method), because that will speed up
> the creation
> of your widgets.
>
> also I'm not sure about the impact of having a bigger constructor
> function.
>
> Pascal Bestebroer ([EMAIL PROTECTED])
> Software ontwikkelaar
> Oberon Informatiesystemen b.v.
> http://www.oibv.com
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Namens Cameron Hart
> > Verzonden: dinsdag 6 maart 2001 14:01
> > Aan: dynapi-help
> > Onderwerp: [Dynapi-Help] widget query
> >
> >
> > I've just read Pascal's widget tutorial again (seems a bit
> > different from
> > last time I read it), I'm wondering what the advantage of
> > putting most of
> > the widget initialisation (like creating child layers,
> > setting colours etc)
> > into a precreate handler is? why not just put it in the constructor?
> >
> > cheers,
> >
> > cameron.
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to