IVZTreeMap.BranchItemsToolTipStyle

Syntax

BranchItemsToolTipStyle: IVZToolTipStyle;

Description

The BranchItemsToolTipStyle property determines style of tree map branch tooltips.

Comments

The branch tooltip of a tree map may look as follows:

Example

Executing the example requires that the repository contains an express report with the EXP identifier. The module containing the example should have links to the Drawing, Express, Metabase and Visualizators system assemblies. The specified procedure should be called from the Main entry point.

Change the background of branch tooltips of the tree map, display animation time and number of colors in the component palette:

Sub UserProc;
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    BranchItemsToolTipStyle: IVZToolTipStyle; // Style of branch tooltips of tree map
Begin
    // Get metabase object
    Metabase := MetabaseClass.Active;
    // Get express report object
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
    // Change background of branch tooltips of tree map
    BranchItemsToolTipStyle := TreeMap.BranchItemsToolTipStyle;
    BranchItemsToolTipStyle.Background := New GxSolidBrush.Create(New GxColor.CreateRGB(250,220,220));
    BranchItemsTooltipStyle.NoDataText := "no data";
    // Display animation time
    Debug.WriteLine("Animation time: " + TreeMap.AnimationTime.ToString);
    // Display number of colors in palette
    Debug.WriteLine("Number of colors in palette: " + 
        TreeMap.Palette.BackgroundArray.Count.ToString);
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the background of branch tooltips of tree map is changed.

Also, the development environment console window displays tree map animation time and the number of colors in palette:

Animation time: 1.5

Number of colors in the palette: 36

See also:

IVZTreeMap