[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> Pop up dialog in MicroWorlds



I found the following routine to work well to create dialog boxes in MicroWorlds2:
 

to speak

if who = "t1 [newtext "text1 [0 0] [100 100] text1, pr [how are you] wait 20 remove "text1]

if who = "t2 [newtext "text1 [0 0] [100 100] text1, pr [I love you] wait 20 remove "text1]

end

Speak is the instruction loaded into each turtle. When clicked on each turtle responds with its unique message.
 
My question is: How can you dynamically change the position of the text box that is created. For example if I wanted the text box to be created at the position of the mouse, I thought the following would work:

set "text1 "pos mousepos

It does not work. Can anyone help.

Have Fun!

Ray Catzel,
President, ComputerPals Inc.
Web site: http://www.computerpals.on.ca/~pals
Email: learn@computerpals.on.ca

 


Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home