marc
01-05-2004, 08:09 AM
Hi All
Does anyone know how to re-use attributes within a class instance?
I think I am missing something fundamental here but from what I read this should produce 2 boxes, one with the text "Box1" and the second with the text "Label".
I'm sure this is a no-brainer.
Marc
<canvas>
<simplelayout spacing="5"/>
<class name="box" height="100" width="100" bgcolor="red">
<attribute name="label" value="Label"/>
<text text="${parent.label}" />
</class>
<box label="Box1"/>
<box/>
</canvas>
Does anyone know how to re-use attributes within a class instance?
I think I am missing something fundamental here but from what I read this should produce 2 boxes, one with the text "Box1" and the second with the text "Label".
I'm sure this is a no-brainer.
Marc
<canvas>
<simplelayout spacing="5"/>
<class name="box" height="100" width="100" bgcolor="red">
<attribute name="label" value="Label"/>
<text text="${parent.label}" />
</class>
<box label="Box1"/>
<box/>
</canvas>