Robin wrote:
> OK, while poking through the docs I found the bit that said that you can't
> call addSubview directly to add a subview. Unfortunately, that part of the
> documentation doesn't go on to say what you can do to add a subview
> programmatically. Is it just a matter of adding it to the subviews array of
> the view, and removing it from that of canvas? Or is there more to it than
> that?
Just to reply to myself again...I worked it out.
(For the interested newbies like myself: classes have a constructor that you
can use to specify the parent, and the attributes, so when I changed my call to:
var v = new hrule(parent, {width: this.parent.width,
bgcolor: this.linecolor});
it was happy.)
Robin.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user