Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

Subject: Text boxes
From: mwforum@xxxxxxxxxxxxxxxxxx (Wendy Petti)
Date: Wed, 23 Mar 2005 17:42:55 -0500

You can also print a text box directly from MicroWorlds without outputing
the text to another file.  Just click in the text box to make it active,
then select
File -> Print
and it will print the contents of the text box.

Also, Daniel's procedure for outputing text from several text boxes is
clever and useful, but if you just want to output the text from one text
box, you can do it with one command in the Command Center, such as:

savetext "story

This saves the contents of the current text box as a text file named story
in the same folder as your project.  You can also specify a path to a
different directory.  Here is what the MicroWorlds vocabulary help says
about savetext:

savetext path
Saves the text found in the current text box in a text file format.

The input can be a file name with or without an extension (and the file will
be saved in the current directory) or a full or relative path. This command
is equivalent to the Export Text item in the File menu. To save the
Procedures Tab area as a text file, see exporttext. See also Exporting Text
in MicroWorlds Help Topics, loadtext and textlist.

savetext "story
savetext "C:\proj\story
savetext "story.rtf

Also, just to clarify Daniel's instruction about resizing a tex box:  to get
the corner handles you can do one of two things:

1) ctrl-click (or command-click for Mac users)
2) click outside the text box and drag the mouse across the text box, then

Either method will give you the corner handles which you can then drag.

If you want several text boxes of the same size, you can copy one
(right-click and select "copy") and then paste it several times.


Wendy Petti
OWL's MicroWorlds in Action

  -----Original Message-----
  From: mwforum-admin@xxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxx]On Behalf Of Daniel Ajoy
  Sent: Wednesday, March 23, 2005 9:13 AM
  To: mwforum@xxxxxxxxxxxxxxxxxx
  Subject: Re: [MWForum]Text boxes

  On 22 Mar 2005 at 16:53, jbonnes@xxxxxxxxxxxxxxxx wrote:

  > Is there a way to make text boxes larger so that they show more data

  Sure, mark each one, and drag a one of the black squares:

  (You can do it with commands, too. Interested?)

  > and also can you output the data to file for printing or other uses.

  Yes. With this procedure:

  to savetextfiles :i :last
  if :i > :last [stop]
  ask word "text :i [savetext (word "c:\file :i ".txt)]
  savetextfiles :i + 1 :last

  Type something like:

  savetextfiles 1 8

  to save the first 8 textboxes to 8 different text files


  you'll find them in your "root" folder (c:\)

  OpenWorld Learning

Attachment: command.gif
Description: GIF image

Attachment: WPM$0806_1.PNG
Description: Binary data

  • Previous by thread: Text boxes
  • Next by thread: MIA, Ask an Expert: cool ideas

  • 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.

    © copyright 2001 - 2008