IVZTreeMap.ItemsToolTipStyle

Syntax

ItemsToolTipStyle: IVZToolTipStyle;

Description

The ItemsToolTipStyle property determines style of tooltips for tree map leaves.

Comments

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

Example

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

Change the text shown when no data is available, set display mode for map tree element tooltips on mouse click:

Sub UserProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    TreeMap: IVZTreeMap;
    ItemsToolTipStyle: IVZToolTipStyle;
Begin
    // Get the current repository
    Metabase := MetabaseClass.Active;
    // Get express report
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
//Getobjectoftextlabelsstyle     ItemsToolTipStyle := TreeMap.ItemsToolTipStyle;
//Settext,shownwhenno data is available     ItemsToolTipStyle.NoDataText := "no data";
    // Set tooltips display mode
    ItemsToolTipStyle.HoverMode := VisualizatorHoverMode.Click;
    // Get express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the tooltip text, shown when data is missing, is changed. The tooltip now appears on mouse click on a tree map element:

See also:

IVZTreeMap