Customizing Captions


The five caption styles you see in the Rollover Caption Properties dialog box are what you must create to customize captions. You can create these five styles in an imaging application such as Fireworks MX 2004 or Adobe Photoshop.

Bitmaps created for use as custom captions must be saved as BMP images. Save the files to C:\Program Files\Macromedia\Captivate\Gallery\Captions.

Tip

  • Do not anti-alias the edges of captions.


Naturally, when creating custom captions there are some rules to be followed. These rules are discussed in this section.

Naming conventions for custom captions

The name of each image must

  • Follow a preset naming convention

  • Be unique

  • Appear at the start of each bitmap's filename (Figure 5.11)

    Figure 5.11. All custom captions must contain the same name.


For example, assume you create a caption named CPgrey. The five bitmaps associated with the caption must be named as follows:

  • CPgrey1.bmp The image with no callout

  • CPgrey2.bmp The image with a callout to the right or upper right

  • CPgrey3.bmp The image with a callout to the left or upper left

  • CPgrey4.bmp The image with a callout to the top or the top right

  • CPgrey5.bmp The image with a callout to the bottom or the bottom left

Colors

Custom captions are, essentially, composed of two color elements in your imaging application. There is the background or canvas color, which has to be a solid color, and the color used in the caption. It is important that you make this distinction when designing custom captions for use in Captivate.

Captions are surrounded by an area of transparency, which means that the canvas or background color of the image will be made transparent. Thus, it is extremely important that the background or canvas color and the caption color be completely different. If they share a common color, that color will also be "knocked out" in the caption. This is due to the fact that the transparency color is determined by the color of the pixel in the upper left corner of the image.

In Figure 5.12, the background color is a solid gray (#D8DEE5) and the caption color is green (#D2D98D). When the caption image is rendered, the pixel in the upper left corner containing the value #D8DEE5 will set the color value for the transparency. Thus any pixel in the image that has that value will be rendered transparent. We that value to be found in the caption image, the pixel would be transparent and allow the slide's background to show through.

Figure 5.12. Place all custom captions on a solid background color.


Text alignment in custom callouts

Depending on the shape of the callout image you have created, the alignment of the text in the callout may not be correct. This can be addressed by setting the left, right, top, and bottom margins of the captions. These margins are measured in pixels.

You can fix text alignment by opening Notepad and entering the text shown in Figure 5.13, adjusting the margins by changing the values. You must save this file to the folder containing the custom caption.

Figure 5.13. Set margins for custom captions in a Notepad document.


Further, the file must contain the same name as the corresponding image and, instead of a .bmp extension, must use an .fcm extension as shown in Figure 5.14.

Figure 5.14. The Notepad document must share the same name as the custom captions and use the .fcm extension.




Macromedia Captivate for Windows. Visual QuickStart Guide
Macromedia Captivate for Windows. Visual QuickStart Guide
ISBN: 321294173
EAN: N/A
Year: 2003
Pages: 130

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net