How do I script for the effect of menu item "Reshape Graphic"
Richard Gaskin
ambassador at fourthworld.com
Thu Jun 2 20:13:01 EDT 2005
Jim Hurley wrote:
>> Those are the markerPoints. They give the corners of the little shape
>> used for the marker.
>
> Thanks Jeanne. That was very helpful.
>
> I see what my problem was. I was setting the MarkerDraw property to
> true, but there were no marker points to be drawn until I had called
> Reshape Graphic from the Object menu.
>
> Apparently, if the marker points are empty, Reshape Graphic constructs a
> small 33 point closed, filled polygon to simulate a blackened circle.
>
> I would like to see how RR does this but I have forgotten how to peek at
> a RR menu script. Could you refresh my memory?
Marker points are a tease if what you're looking for is the equivalent
of SuperCard's editPoints property, as the engine's marker points can be
seen but do not respond to clicks.
You could dig into Rev scripts with devolution easily enough, but the
scripted implementation has some unusual aspects to its behavior. Also,
for even someone as experienced as yourself, we find that it's not
straightforward to implement, esp. compared with SuperCard's one-liner.
It was a cool hack as a workaround before Rev owned the engine, but now
that they own it there's a request to raise the bar to implement the
behavior in the engine natively to allow us to build things on the order
of SuperCard's SampleDraw (or MacDraw or any basic drawing environment):
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=624>
If such drawing environments are of interest and you need to present
them in scrolling document windows, you may also be interested in:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=623>
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list