>...problems and ask questions *as soon as they come up*...
The following script of a button in a can t modify stack allow us to draw a
line in any stack:
on mouseUp
set the cursor to cross
wait until the mouse is down
set the defaultStack to the mouseStack
put the mouseLoc into origine
put "L" & the seconds into titi
create graphic titi
set the style of graphic titi to polygon
set the cursor to cross
repeat while the mouse is down
set the points of graphic titi to origine&return& the mouseLoc
end repeat
choose browse tool
end mouseUp
It does work with the MetaCard 1.4.2 engine but does not with the 2.0 beta.
With the 2.0b, we can t draw a line in another stack, the one where the mouse
is. I think the problem is related to :
>Non-dispatched events (events that occur during waits, visual effects,
>etc.) are now buffered and delivered when a message has finished
>execution. This will eliminate the dropping of events that sometimes
>occured with earlier releases.
So, the mouseStack function does not return the real stack where the mouse is.
How to handle this ?
A different problem :
It seems that we can t save a stack in its own file with "Save as" of the file
menu. MetaCard saves the stack as a substack of the Home stack.
Another one :
The seconds function returns 2 numbers separated by a point !
Thanks in advance for your help.
Laurent Champciaux_
PS: I wish you a happy new year!