tspratt
02-05-2004, 06:22 PM
When instanitating an object using the "new" keyword, it appears that there must be an existing tag some where in the app first, or the object won't instantiate.
In this tiny example below, the new checkbox does not appear unless the invisible <checkbox> tag is uncommented.
<canvas >
<!--checkbox visible="false"/-->
<button text="clickMe!">
<method event="onClick">
var ochkbox = new checkbox(detail);
ochkbox.setAttribute("text","newcheckbox");
</method>
</button>
<view id="detail" x="150" />
</canvas>
Is this intended behavior?
Tracy
In this tiny example below, the new checkbox does not appear unless the invisible <checkbox> tag is uncommented.
<canvas >
<!--checkbox visible="false"/-->
<button text="clickMe!">
<method event="onClick">
var ochkbox = new checkbox(detail);
ochkbox.setAttribute("text","newcheckbox");
</method>
</button>
<view id="detail" x="150" />
</canvas>
Is this intended behavior?
Tracy