[Thread Prev] [Thread Next]
Hello,
MicroWorlds is much more "object oriented" than any other version. Text
doesn't normally "live" on the page. It lives in text boxes, which are
"objects". After some time, you will find that objects are much more fun and
powerful than pixels.
Here's a replacement for label:
to label :this
newtext "tempo pos [100 25]
insert :this
transparent "tempo
stamptext "tempo
remove "tempo
end
The first line creates a text box using the turtle's position. I'm not
specifying which turtle, therefore it will be the "current" turtle (last
created, used, addressed, clicked on...). The number 100 can be increased if
you are labelling [a rather long list]
Second line inserts the input in the text box
Third line makes it transparent
Next, stamp (only works if the text box is transparent)
Then, remove the text box, otherwise the procedure will not work twice (text
box already exists).
Pro: you can set the font, fontsize, etc. See the Text primitives in Help.
Other approach: see the TurtleTypist LCSI's project library
(www.microworlds.com)
Ciao,
Alain
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: March 9, 2007 5:44 AM
To: askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: MIA, Ask an Expert
This is an automatic message sent from the web form at:
http://mia.openworldlearning.org/mwforum.htm
from: David McKee <dmckee@xxxxxxxxxxxxxxxxxxx>
date: Fri Mar 9 03:44:21 2007
platform: Mac OS10
version: MicroWorlds Ex
Hi,
Just moving from MSW Logo to Microworlds and having a bit
of bother with one command. What can I use instead of
LABEL? I just want to make a number or text appear on the
screen where the turtle is currently positioned. There
doesn't seem to be a Microworlds equivalent. Thanks!
Previous by thread:
MIA, Ask an Expert
Next by thread:
MIA, Ask an Expert
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|