PDA

View Full Version : showhandcursor attribute


Benibur
04-24-2007, 08:24 AM
the lzx reference describes the "showhandcursor" attributes of LzViews.
but is it really implemented ?
this simple exemple doesn't work :

<canvas height="150" debug="true">

<view x="10" y="10" height="50" width="50" bgcolor="silver"
showhandcursor="false" clickable="true"
onclick="Debug.write(' showhandcursor for V1',showhandcursor);"
/>

<view x="70" y="10" height="50" width="50" bgcolor="olive"
showhandcursor="true" clickable="true"
onclick="Debug.write(' showhandcursor for V2',showhandcursor);"
/>

</canvas>

frisco
04-24-2007, 09:59 AM
the lzx reference describes the "showhandcursor" attributes of LzViews.
but is it really implemented ?


It was broken before, but we thought we fixed it in http://www.openlaszlo.org/jira/browse/LPP-1954. I'll take another look at it.

Benibur
04-24-2007, 10:12 AM
ok thank you.
for your information i am using the 3.3.3 version of lz.
i can create a jira ticket if needed.

Ben

frisco
04-24-2007, 10:23 AM
ok thank you.
for your information i am using the 3.3.3 version of lz.
i can create a jira ticket if needed.

The showhandcursor attribute is working, far as I can tell. This is a slightly souped-up version of the test in LPP-1954:

<canvas height="300" width="500" debug="true">
<debug y="150"/>
<include href="lzunit"/>
<simplelayout axis="y" spacing="10"/>

<view id="showhands" width="50" height="50" bgcolor="red" clickable="true" showhandcursor="false">
<method event="onclick">
this.setAttribute('showhandcursor', true);
Debug.write("Click");
</method>
<method event="onmouseout">
this.setAttribute('showhandcursor', false);
</method>

</view>

<TestSuite>
<TestCase>
<method name="testNoHandCursor">
assertFalse(showhands.showhandcursor);
assertEquals('4.0.x.0', canvas.version);
</method>
</TestCase>
</TestSuite>


</canvas>

amos
08-11-2007, 10:31 PM
If you test this in 3.3.3 you will see that only setting using script works. Setting the attribute via XML does not work.