I used to just set them in the constructor which is before precreate and
create. But I'll go with the new way, it's allowed a bit more flexibilty
in writing widgets anyway.
Robert Rainwater wrote:
> The reason for the precreate event is so that you set the dynlayer
> proprties before it has be
wrote about "[Dynapi-Help] widget query":
> 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.
> d
[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 shou
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 initia
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?
chee