| Gauges Blockset | ![]() |
Many blocks enable 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.
Type of Text | Part of Dialog Box That Defines or Enables Text |
|---|---|
Title appearing in block's outline | Title property on Background panel |
Numerical labels near tick marks | Labels area on Ticks panel. On Strip Chart block, Labels properties on Tracks and X Axis panels. |
Numerical labels near pointer or needle | Digital panel |
Captions appearing anywhere on block | Captions panel |
When it is present, the Captions panel of the ActiveX Control Properties dialog box enables 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:
Allocate space for a new font style by increasing the value of the Fonts property by one.
Set FontID to its maximum value. This is the index that corresponds to the newest font style.
Set CaptionID to the index that corresponds to the text caption whose font you want to change.
Apply the font style to the caption by setting FontID to the font style's index.
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 | Modifying the Displayed Range | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |