I found a usefull way for allowing an object to be repositioned and resized by using Drag functionality. Hope it is of use to other forum members as well.
ResizeByDrag.rp (71.9 KB)
Resize shape by drag
tomelsten
#1
Nice. One small improvement: you can now set a background color for a panel state. If you do that, you can get rid of the blue rectangle in the panel and you can stretch it as wide as you want.
Jeff
pdcdec
#4
Thank you tomelsten and bermanatalie for your examples.
They were a perfect start for my need: resizing panels using 4 handles.
I got rid of the globals so you can use multiple instances of resizable panels.
Instead, I stored width and height using the text property of 2 hidden shapes inside the right handle (boooh!).
OnLoad, the 4 handles ‘jump’ automatically to the right place.
So here is the file in case it can be useful.
Cheers
ResizeByDrag-updated_4handles.rp (103.4 KB)
Snapping DPs to grid on drop drag