The LzCursor
service provides methods for
changing the mouse cursor. For example:
<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 14. Changing the cursor with LzCursor
<canvas height="30"> <resource name="waitcursor" src="../resources/lzwaitcursor_rsc.swf"/> <button onclick="setCursor()" text="Click me to change the cursor for 1/2 second"> <method name="setCursor"> LzCursor.setCursorGlobal('waitcursor'); var del= new LzDelegate(LzCursor, 'unlock'); LzTimer.addTimer(del, 500); </method> </button> </canvas>
Copyright © 2002-2007 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.