Hi there

layerClipRect is a nice addition to LiveCode.

Made a little experiment with the code from the Dictionary

// Hide 10 pixels from the border of image "myImage"
local tRect
put the rect of image "myImage" into tRect
add 10 to item 1 of tRect
add 10 to item 2 of tRect
subtract 10 from item 3 of tRect
subtract 10 from item 4 of tRect
set the layerClipRect of image "myImage" to tRect


Had an image and a button with the code.


It always toke two clicks on the button to have an effect on the image

Did also put a “lock screen” in there to force an update.

Same result: Two clicks necessary

Michael
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to