Jim Hurley jhurley at infostations.com
Mon Feb 28 12:14:56 EST 2005

On most cards, simply choosing a drawing tool, the pencil for 
example, an image is created by the act of drawing. The dimensions of 
the image fills the window.

Or the act of dragging with a drawing tool in a handler has this same 
effect of creating its own drawing space. If I open a new blank stack 
and run the following handler:

on mouseUP
   choose the pencil tool
   drag from 100,100 to 300,300
   choose the browse tool
end mouseUp

This gives me a line, as expected.

But if I first import  an image (a jpg for example) and run the above 
handler, nothing.

What is there about an existing  image that causes this behavior?

(I can recover the ability to drag and draw by first creating a blank 
image, setting its rect to the screenRect and then running the above 
handler. I guess what surprises me is that Run Rev loses its 
forgiving behavior of creating an image to draw into if there is an 
existing image already present.)


More information about the use-livecode mailing list