Let's say I'm making a virtual attribute on LzText named "thickness".
Where do I specify thickness's default value? I've ran across three
likely places so far:
in lzx.rnc
by setting defaultattrs.thickness = 0; in LzText.lzs
or, in the constructor, with something like
if ('thickness' in args && args.thickness != null) {
this.setThickness(args.thickness);
} else {
this.setThickness(0);
}
Which one of these is the "right" way, or is there another right way?
Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]