Dials & Gauges Blockset | ![]() ![]() |
Displaying Text on a Block
Many blocks allow you to include text on the block. Such text might describe the quantity being measured, the units of measurement, or other information. The table below lists some types of text that are associated with a specific part of the block, as well as the part of the ActiveX Control Properties dialog box panel that defines the text. Some types of text apply only to certain blocks.
Using the Captions Panel to Display Text
When it is present, the Captions panel of the ActiveX Control Properties dialog box allows you to place text anywhere on the block. Blocks that use text captions by default include Mixer Scale, Tank, Thermometer, Amp Meter, and Volume. This section describes how to add, remove, and change characteristics of text captions using the Captions panel.
Adding Text Captions. To create a new text caption, follow these steps:
Removing Text Captions. To remove the most recently added text caption (that is, the one with the largest CaptionID value), decrease the value of the Captions property by one. Note that this removes all characteristics of that text caption.
Changing Fonts and Other Characteristics of Text Captions. To change the font of an existing text caption, you must create a numbered font style and then apply that style to the caption. Follow these steps:
To change other characteristics of an existing text caption, first set the CaptionID property on the Captions panel to the value that corresponds to the text caption you want to change. Then use other properties on the dialog box panel, except the Captions counter, to configure the text caption accordingly.
Note For text captions, the color choice on the Captions dialog box panel overrides the color choice on the Fonts dialog box panel. |
![]() | Understanding ID Properties | Controlling Values with the Mouse | ![]() |