Step 5. Design the Slider Legend

  1. Expand Slider under Legends.

  2. Specify if the slider's header should be visible.

  1. Select HeaderVisible under Legends–Slider.

  2. Select True to make it visible, False to hide it.

  3. Configure the font to display in the series header.

  1. Select Font under Legends–Slider.

  2. Either:

  1. Click the Font button on the Legend–Slider Font row and open the Font dialog box to configure the font, or

  2. Set UseAmbientFont under Legends–Slider to True.

  1. Select a fill for the header's background.

  1. Select Brush under Legends–Slider.

  2. Select a color for the header background.

  1. Click the down arrow to the right of the displayed color.

  2. Select a color from the palette that appears.

  3. Select the brush Type.

Type

Fills the series with a:

apBrushSolid

Solid color

apBrushHatch

Hatch (pattern)

  1. Select a HatchStyle for the brush if you selected apBrushHatch as the type.

apHatchBackwardDiagonal

apHatchCross

apHatchDiagonalCross

apHatchForwardDiagonal

apHatchHorizontal

apHatchVertical

  1. Configure the legend's columns for the XY Plot's slider.

  1. Expand Columns under Legends–Slider.

The number of columns currently in the header appears (grayed out) in the Count row. You can add additional columns or delete existing ones.

  1. Expand Item.

Each number that appears represents a column in the order that it displays, from left to right, e.g. 0 represents the column that is furthest left.

  1. Set Visible to True to make the column visible; False to hide it.

  2. Specify the type of slider's value that appears in the legend. The options are:

Option

Shows the

apLegendName

Slider name

apLegendSliderValue

Value of a slider relative to an axis

  1. Make specifications when apLegendSliderValue is selected.

Enter an Index value that specifies the axis you want to use. The index is the position of the axis in the X or Y-axis collection. For a vertical slider the axis must be an X-axis; for a horizontal slider, a Y-axis.

  1. Enter text that displays as the column header in the Header row. The text normally describes the type of value the column is reporting.

  2. Specify the column width.

  1. Set AutoWidth to True to make the column width expand or contract to accommodate the width of its values, or

  2. Set AutoWidth to False and enter a value in the Width row.

A value of 1 is equivalent to 1/100th of a millimeter (when a CimView screen is at 100% zoom).

  1. Enter a number in the Order row that defines the order in which the column should appear in the legend, from left to right. For example, 0 is the first column at the left of the legend; 1 is to Column 0's right.

  2. (Optional) Add additional columns.

  1.  Select Item under Legends–Slider.

  2. Click the right mouse button.

  3. Select Add from the popup menu.

  1. Select a fill for a selected column.

  1. Expand Brush under Column–Item <number>.

  2. Click the Palette button on the Color row to select a color.

  1. Format the Slider Legend's rows for the XY Plot series.

  1. Expand Row under Legends–Slider.

The number of rows currently in the Slider Legend appears (grayed out) in the Count row.

  1. Enter the maximum number of Slider Legend rows that can be visible during runtime in the VisibleCount row.

More information

Design XY plot legends.