lz.Cursor is the single instance of the class
lz.CursorService.
This example shows how the cursor can be set on a view so that it will change when the mouse is over that view:
Example 21. Setting the cursor for a view
<canvas height="30">
<resource name="waitcursor" src="resources/lzwaitcursor_rsc.swf"/>
<view bgcolor="yellow" cursor="waitcursor">
<text>Roll over to change the cursor</text>
</view>
</canvas>
This example changes the cursor for 1/2 second when the button is clicked:
Example 22. Changing the cursor with lz.Cursor
<canvas height="30">
<resource name="waitcursor" src="resources/lzwaitcursor_rsc.swf"/>
<button text="Click me to change the cursor for 1/2 second">
<handler name="onclick">
lz.Cursor.setCursorGlobal('waitcursor');
var del = new LzDelegate(lz.Cursor, 'unlock');
lz.Timer.addTimer(del, 500);
</handler>
</button>
</canvas>
| Name (CSS property) | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
LzCursor
|
lz.CursorService | readonly | ||
The cursor service. Also available as the global
lz.Cursor.
|
||||
Methods
Events
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.