emily
02-12-2003, 12:43 PM
I am trying to avoid using ids by using named views rather than ids.
The following code example gives these errors:
arefview.lzx:15: reference to undefined property 'width'
arefview.lzx:15: reference to undefined property 'height'
I think that it's finding my refview, but doesn't know that refview is a pointer to canvas.sister.cousin.
By the way, when I change the <attribute> tag line to read:
<attribute name="refview" type="reference" />
I get the following:
Error: arefview.lzx:17:56: unknown attribute type: reference
I'm sure I'm doing something extremely stupid. Please help.
Thanks In Advance.
--Emily
<canvas width="500" height="500" debug="true">
<simplelayout axis="y" />
<view name="sister" bgcolor="red" >
<text
name="cousin"
width="100"
height="200" >
Cousin: (sister's daughter)
</text>
</view>
<view name="brother" bgcolor="blue" x="105">
<text
name="cousin"
oninit=
"this.refview=this.parent.parent.sister.cousin"
width="this.refview.width * 2"
height="this.refview.height" >
Cousin: (brother's son)
<attribute name="refview" />
</text>
</view>
</canvas>
The following code example gives these errors:
arefview.lzx:15: reference to undefined property 'width'
arefview.lzx:15: reference to undefined property 'height'
I think that it's finding my refview, but doesn't know that refview is a pointer to canvas.sister.cousin.
By the way, when I change the <attribute> tag line to read:
<attribute name="refview" type="reference" />
I get the following:
Error: arefview.lzx:17:56: unknown attribute type: reference
I'm sure I'm doing something extremely stupid. Please help.
Thanks In Advance.
--Emily
<canvas width="500" height="500" debug="true">
<simplelayout axis="y" />
<view name="sister" bgcolor="red" >
<text
name="cousin"
width="100"
height="200" >
Cousin: (sister's daughter)
</text>
</view>
<view name="brother" bgcolor="blue" x="105">
<text
name="cousin"
oninit=
"this.refview=this.parent.parent.sister.cousin"
width="this.refview.width * 2"
height="this.refview.height" >
Cousin: (brother's son)
<attribute name="refview" />
</text>
</view>
</canvas>