Hi,
I seem to have trouble setting fontsyle back to "plain" after changing
to "bold" at runtime.
I created a testcase for this question.
I tested it in 3.1.1 it works fine, but in 3.2 [and lps-dev] it failed
...
What did I do wrong?
thanks.
Sanjaya
==3.1.1/3.2 code base ==
<canvas>
<simplelayout />
<method event="oninit">
this.mytext1.setAttribute("fontstyle","bold");
this.mytext1.setAttribute("fontstyle","plain");
</method>
<text name="mytext1" text="how come I am still bold?"
resize="true"/>
<text name="mytext2" text="how come I am OK?" resize="true">
<method event="oninit">
this.mytext2.setAttribute("fontstyle","bold");
this.mytext2.setAttribute("fontstyle","plain");
</method>
</text>
<text name="mytext3" text="how come I am NOT OK?" resize="true">
<method event="oninit">
this.setAttribute("fontstyle","bold");
this.setAttribute("fontstyle","plain");
</method>
</text>
</canvas>
== 3.2 code ==
<canvas>
<simplelayout />
<handler name="oninit">
this.mytext1.setAttribute("fontstyle","bold");
this.mytext1.setAttribute("fontstyle","plain");
</handler>
<text name="mytext1" text="how come I am still bold?"
resize="true"/>
<text name="mytext2" text="how come I am OK?" resize="true">
<handler name="oninit">
this.mytext2.setAttribute("fontstyle","bold");
this.mytext2.setAttribute("fontstyle","plain");
</handler>
</text>
<text name="mytext3" text="how come I am NOT OK?" resize="true">
<handler name="oninit">
this.setAttribute("fontstyle","bold");
this.setAttribute("fontstyle","plain");
</handler>
</text>
</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user