Figure 4-1: These built-in shapes position and format text appropriately-centered on the shape, below the shape, and so on. To add text to a shape, select the shape, and then type.
In general, to type text in any shape, follow these steps:
Select a shape.
Easy, isn't it? Visio 2007 zooms in to show you the text you're typing at 100 percent view. If you misspell, or type a word that Visio 2007 doesn't recognize, the word appears with a wavy red underline, just as in Microsoft Word.
Don't worry if you type more text than the shape can contain. You can adjust the shape size, text block size, or font
When you're finished, press the Esc key, or click outside the text block.
When your goal is to add text, it doesn't matter which tool you use to select a shape-the Pointer tool, the Text tool, or a drawing tool.
Visio 2007 doesn't place limits on the amount of text you can type in a shape's text block. The nice thing about this feature is that it allows you to keep typing and worry about formatting later. If the text doesn't fit, you can do any of the following:
Resize the shape to
Move the text block out of the way of the shape. To do this, click the Text Block tool, click the shape, and then drag the text block to a new position. (If the Text Block tool isn't visible, click the down arrow on the Text tool and select Text Block Tool.)
Format the text using a smaller font. There are several ways to do this, but the quickest is probably to select the shape and then choose a smaller value from the Font Size list on the Formatting toolbar.
Later sections in this chapter provide details about formatting and resizing text and text blocks.
To disable automatic zooming and the spelling checker as you type, follow these steps:
Choose Tools, Options, and select the General tab of the Options dialog box.
To turn off the spelling checker, click the Spelling tab, and then clear the Check Spelling As You Type check box.
Visio 2007 includes a third text option on the View tab of the Options dialog box. You can now also choose Clear Type Text Display. This is best used for computers with LCD displays, such as laptops.
Unlike Microsoft Word, Visio 2007 does not include grammar checking.
When you type in a shape, Visio 2007 zooms in so that the text is legible, but when you work in the drawing, you can't read the text anymore.
Let's say that you're using 12-point Arial text in your shapes. If you're used to working in Word, you know that 12-point type is plenty big enough to read. And it seems very readable when you first type in Visio 2007, until you click away and display the entire drawing, when the text is no longer big enough to read.
What's happening is that Visio 2007 automatically zooms to show your shape at 100 percent size when you type in it, which means that your 12-point type looks like 12-point type. When you click away from the shape or press Esc, Visio 2007 returns to the magnification that you were using for your drawing. If you just started your diagram, Visio 2007 is probably displaying the full page so that you can see all of your drawing, but at this zoom level, 12-point text is not legible. You can use the Zoom list on the Standard toolbar to zoom in and out in your drawing to see shapes and text up close. Regardless of the zoom level, when you print your diagram, that 12-point type will be printed at exactly that size.
You can type
Figure 4-2: To add text anywhere on a page, click the Text tool, drag out a text block, and then type. The text wraps as you type according to the width of the text block you dragged.
Using text-only shapes
When you use the Text tool to type on the page, you are in fact creating a shape-a text-only shape , also referred to as independent or freestanding text. This technical detail explains in part why the way you add and edit text in Visio 2007 is different from other Microsoft Office 2007 programs. In addition, you can format text-only shapes like other shapes. Although a text-only shape has no line or fill by default, you can add them by selecting the text-only shape and then choosing an option from the Formatting toolbar, or by right-clicking the shape and selecting Format, Fill, or by selecting Format, Line to change the border.
To add text anywhere on a drawing page, follow these steps:
Click the Text tool on the Standard toolbar.
Drag on the drawing page to create a text block of the size you want.
Visio 2007 zooms in to show you the text you're typing at 100 percent view.
When you're finished, press the Esc key, click the Pointer tool, or click outside the text block.
Visio 2007 creates a text-only shape and formats your text using the default settings. Unless you change these settings, the default format is centered, Arial, 8-point text.
To center text on a page easily, click the Text tool, drag to create a box the width of the drawing page, and then type. Visio 2007 centers the text within the text box, so if the box is the width of the page, the text is centered horizontally within the page.
When you add text to a shape, the text always appears in a text block. However, the size, shape, and location of a text block can
If you want to see a shape's text block, click the Text Block tool, and then click the shape. If you draw a shape, its text block initially has the same boundaries as the shape itself. For example, let's say you draw a rectangle. If you select the rectangle and then start typing, text appears centered in the rectangle pretty much as you'd expect. The rectangle's text block occupies the same area as the rectangle. However-and this is pretty cool-it doesn't have to appear this way. You can move, resize, and rotate a shape's text block without
Figure 4-3: When you select a shape with the Text Block tool, Visio 2007 displays selection handles for the text block alone, which can differ in size, shape, and location from its shape.
Text tools explained
If you're used to working in a word processing program like Word 2007, you may find Visio's text behavior a little surprising. Here are a few fun facts about Visio 2007 text tools that you can take advantage of:
If a shape already includes text and you want to add more or select just
Sorry, one per customer
When you use the Text tool to type on the page, the text is automatically placed in a shape without lines or fill-in other words, a text-only shape. Because a text-only shape is still a shape, you can format it, and its text block, as you would any other shape. You can even add lines or fill.
Figure 4-4: Many objects in Visio can have text, including guide lines and clip art.
Just as a shape has width and height values that you can view and change in the Size & Position window, a shape's text block has width, height, and other properties that you can see in the ShapeSheet window. When you use the Text Block tool to move, rotate, or resize a text block, Visio 2007 records your actions in the
Cross-Reference For an introduction to ShapeSheet formulas, see the section titled " Writing ShapeSheet Formulas " in Chapter 25 , "Making Shapes Smart."
Is there a way to distinguish "model space" text from "paper space" text as some CAD programs can do?
Visio doesn't display text the same way CAD programs do. Text is displayed in your drawing using its printed size. When you zoom in and out, text looks larger and smaller, but only the view, not the text size, is changing. Changing the drawing scale also has no effect on text size, which is always measured in the real-world units of the printed page.
Many Visio 2007 shapes are really groups, and often they contain text that you can customize. For example, many of the title block shapes in the Borders And Titles stencil are groups. Typically, groups work the way you expect them to, and text is added in an appropriate format and location. You don't have to think about it. Maybe you see text on a shape that you want to change, but can't figure out how to get at it. In times like these, you've probably
Groups associate shapes in a unique manner that you can take advantage of in your own diagrams. For example, if you want a way to keep blocks of text together and yet format each block differently, you should create a group. You create a group by selecting Visio objects, and then choosing Shape, Grouping, Group. Because the group itself is a separate object with a text block, it can have text. Each shape in the group can also have text. And each shape's and group's text can be formatted differently. In this way, you can have multiple text blocks in an object that appears to be one shape, as Figure 4-5 shows. You can
Figure 4-5: The Note Box shape from the Borders And Titles stencil is really a group.
To see a group's text block, select the group, and then press F2. Visio 2007 opens the group's text block. To type in one of the group's shapes, subselect the shape (click any shape within the group once after selecting the group), then type. Sometimes a group has been protected so that you can't add text to it. It's safe to assume that the shape designer had a good reason for locking the shape, but if you want to add text, such protection can be frustrating. Fortunately, there are workarounds for this issue. For example, you can use the Text tool to create a text-only shape containing the text you want, drag it into place atop the group, and then group the text and the group. Or you can try to bypass the
Cross-Reference For details, see the section titled " Editing Shapes in a Group " in Chapter 22 , "Drawing and Editing to Create New Shapes."
How can you tell if you're typing in a group? Select the shape, and then choose Format, Special. You'll see Type: Group in the Special dialog box if the shape is a group. You must be in Developer Mode to use the Format, Special command (choose Tools, Options, select the Advanced tab, and turn on the Run In Developer Mode check box).