Hi!
This approach resizes the rectangle when the handles are dragged. It sets the size of the rectangle based on where the dragged handle would be if the handle were being moved on drag. The handle, however, is not moved when you drag it. The handles are moved by OnResize of the rectangle (using the x and y positioning that Nathan describes above).
A note on TotalDragX (and TotalDragY). TotalDragX is an Axure keyword that gives you the drag’s horizontal offset from where the drag started. So if, at any time while dragging, the mouse is ten pixels to the right of where it was when drag started, TotalDragX is 10. If the mouse is 10 pixels to the left of where drag started, TotalDragX is -10. Thus you can get the drag’s current x coordinate by adding TotalDragX to the x coordinate of where dragging started, which we store upon OnDragStart.
TotalDragY is the same, but in the vertical orientation.
Live sample
File: resize-with-drag-handles.rp (84.6 KB)
Note that this breaks (for whatever reason) if you use a dashed line; a rectangle with a dashed line, when resized multiple times, does not draw its border to the size of its dimensions. Probably has something to do with its being converted to a bitmap when published, whereas a solid-bordered rectangle is not converted to a bitmap.