Many Thanks!!!! Not Zippy and you helped me a lot, it works fine!
-----Message d'origine----- De : P T Withington [mailto:[EMAIL PROTECTED] Envoyé : mercredi 24 janvier 2007 17:12 À : [EMAIL PROTECTED] Cc : [email protected] Objet : Re: [Laszlo-user] parents and array You want to read: http://www.openlaszlo.org/lps/docs/guide/introductory- classes.html#d0e13841 When you instantiate a node dynamically, you pass the parent node as the first argument (and they will automatically be added to the subnodes array). On 2007-01-24, at 10:56 EST, Raphaël Arbuz wrote: > Hi, > > I have the following patern: > <view name="a"> > <attribute name="b" /> > </view> > > and the code: > b = new Array(); > > After that, elements added to the Array "b" do not seem to have the > view "a" > as parent and "this.parent" in them shows "container". > > How can I avoid that, to make sure these elements are "a" children > so as to > setup a scrollbar on "a", making the "b"s scroll? Any idea? > > Thanks very much, > > Raphael >
