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