cursors.lzx

<canvas width="100%" height="260">
    <resource name="crosshair" src="resources/cursor_crosshair.png"/>
    <resource name="wait" src="resources/cursor_wait.png"/>
    <simplelayout spacing="10"/>
    <button onclick="lz.Cursor.showHandCursor(true)">Change default cursor for all buttons to hand
        (on by default)</button>
    <button onclick="lz.Cursor.showHandCursor(false)">Change default cursor for all buttons to
        default</button>
    <button onclick="lz.Cursor.setCursorGlobal('crosshair')">Turn on crosshairs</button>
    <button onclick="lz.Cursor.unlock()">Turn off crosshairs</button>

    <view bgcolor="red" showhandcursor="false" clickable="true">
        <text>showhandcursor is false</text>
    </view>
    <view bgcolor="green" showhandcursor="true" clickable="true">
        <text>showhandcursor is true</text>
    </view>
    <view bgcolor="yellow" cursor="wait" clickable="true">
        <text>cursor is 'wait'</text>
    </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->

Cross References

Resources

Name Source Image
crosshair resources/cursor_crosshair.png
wait resources/cursor_wait.png