Live Resize control

DunbarX at aol.com DunbarX at aol.com
Thu Jul 16 09:56:55 EDT 2009


This is crude, and needs to be generalized for all four corners of an 
object, but I hope you get the idea.

I made a small button called "handle", 12 pixels X 12 pixels. Put this in 
the script of the object you want to resize:

on mouseStillDown
    put the rect of me into tRect
    set the loc of   btn "handle" to item 1 of the mouseLoc - 2 & "," & 
item 2 of the mouseloc - 2
    set the rect of me to   item 1 of tRect & "," & item 2 of the mouseLoc &
 "," & item 1 of the mouseLoc & "," & item 4 of tRect
end mouseStillDown


**************
S T R E T C H  your technology dollars with 
great laptop deals from Dell! 
(http://pr.atwola.com/promoclk/100126575x1223081712x1201714210/aol?redir=http:%2F%2Faltfarm.mediaplex.com%2Fad%2Fck%2F1230
9%2D81939%2D1629%2D5)



More information about the use-livecode mailing list