Adding Nonscrolling Text and Graphics

You can set aside part of a topic as a nonscrolling region. A nonscrolling region displays text or graphics in a fixed location, immediately below the button bar. Text or graphics in the nonscrolling region remain in place even if you scroll the other title text.

Nonscrolling regions are useful for displaying topic names or other identifying graphics at the beginning of a long topic. Also, full-text searches with the Topic Titles Only option will look only at text in nonscrolling regions.

A nonscrolling region can include any Viewer features that appear in normal text, including jumps, definitions, bitmaps, and hot spots for playing audio or animation segments.

·To code a nonscrolling region:

1.Make sure the text or bitmap reference you want to place in the nonscrolling region is the first paragraph of the topic.

2.Select the paragraph containing the text or bitmap reference.

3.From the Format menu, choose Paragraph and select the Keep Paragraph With Next check box.

Summary: Setting the Background Color

To visually set off the nonscrolling region, you can change the background color used for the region. To do this, change the background color in the [WINDOWS] section of the project file. For example, the following entry in the project file tells Viewer to display the nonscrolling region using a light gray background:

[WINDOWS]
main = "USA Tour", (0,0,1023,1023), , , (192,192,192)

The numbers (192, 192, 192) are the only numbers in this entry you need to change to set the background color. They represent the red, green, and blue (RGB) components of the background color.

Hint:

Use the Colors application from the Windows Control Panel to see the colors resulting from different RGB values. Choose the Colors button in the application, then choose the Define Custom Colors button at the bottom of the palette.

All nonscrolling regions in the title created from this project file use this back-ground color. To change the foreground as well as the background color, simply format the text characters using the appropriate Color option in Word for Windows. (See “Defining Window Attributes,” later in this chapter, for more information on the other parts of this entry.)