Hi,
I am a rev newbie; but thanks to the generous members of the rev community I am making slow, but steady progress on my "learning project" -- a simple drawing app.
So far I have a simple palette of tools and a canvas where I can add objects of several shapes, select them and drag them around.
I have accomplished that using two simple message handlers that are added at object creation as follows:
set the script of the templateGraphic to
"on mouseWithin" & CR & " select me" & CR & "end mouseWithin" & CR &
"on mouseDown" & CR & " grab me" & CR & "end mouseDown"
Here is the problem:
When I select an object, the resize handles are shown; however, when I click and drag any of them, the object simply moves -- no resizing occurs.
I have searched the dictionary and the forums for object properties or other pointers on how to enable object resizing, but I am coming up blank. Any pointers are appreciated. Thanks,
Dondi.
Graphic object resizing?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Solved -- sort of ...
I modified the on mouseWithin handler by adding the "choose pointer tool" as follows:
Now I am able to resize the created objects when the app is run within Rev. However, the standalone app still behaves as in the original post -- i.e., clicking and dragging the resize squares moves the object instead of resizing them.
Thoughts?
Thanks,
Dondi.
I modified the on mouseWithin handler by adding the "choose pointer tool" as follows:
Code: Select all
on mouseWithin
select me
choose pointer tool
end mouseWithin
Thoughts?
Thanks,
Dondi.
Resizing Created Objects
Dondi,
Did you figure out a solution to this problem?
Ed
Did you figure out a solution to this problem?
Ed
Re: Resizing Created Objects
Not yet Ed.edljr wrote:Dondi,
Did you figure out a solution to this problem?
Ed
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
Have you tried switching your script like instead of the one above, tryDondi wrote:Code: Select all
on mouseWithin select me choose pointer tool end mouseWithin
Code: Select all
on mouseWithin
choose pointer tool
select me
end mouseWithin