don't know why there is this offset, maybe setting the top and left does NOT set the widht and height?,
but this one DOES work AND is a lot shorter :-)


global gMouseRawX
global gMouseRawY

on mouseDown
  put the mouseH into gMouseRawX
  put the mouseV into gMouseRawY
end mouseDown

on mouseUp
set the style of templateGraphic to rectangle
set the rect of templateGraphic to gMouseRawX,gMouseRawY, the mouseH, the mouseV
create graphic
end mouseUp



Hi,

Cool! Thanks a lot, that did the trick! Thanks a lot.

One other thing, is there any easy way to get the bevhavour of the Rectangle tool in the IDE, e.g. be able to select a rectangle and have the grow box appear on the corners and middle and be able to drag it to a new location?

Thanks a lot
All the Best
Dave
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to