Re: [Dynapi-Help] widget query

2001-03-06 Thread Cameron Hart
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

Re[2]: [Dynapi-Help] widget query

2001-03-06 Thread Robert Rainwater
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

RE: [Dynapi-Help] widget query

2001-03-06 Thread Cameron Hart
[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

RE: [Dynapi-Help] widget query

2001-03-06 Thread Pascal
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

[Dynapi-Help] widget query

2001-03-06 Thread Cameron Hart
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