resizestate
can be used to change the
width and height of a view in response to the movement of the
mouse.
In the example below, the resizestate
tracks
differences in the mouse position from after it is applied, so the
bottom right corner of the resizing view does not snap to the
mouse position.
Example 56. Resizing a view using the mouse
<canvas height="120"> <view bgcolor="green" width="100" height="100" onmousedown="rs.apply()" onmouseup="rs.remove()"> <resizestate name="rs"/> </view> </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.