SelectionBorderPen: IGxPenBase;
The SelectionBorderPen property determines selection border parameters.
To determine whether the mouse click is used to select parent elements, use the IVZTreeMap.UseSelectOnClick property.
Executing the example requires that the repository contains an express report with the EXPRESS identifier. Tree map displaying is set up in the express report.
Add links to the Drawing, Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
MB: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
TreeMap: IVZTreeMap;
Begin
MB := MetabaseClass.Active;
EaxAnalyzer := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
TreeMap.UseSelectOnClick := True;
// Set parameters of selection border
TreeMap.SelectionBorderPen.Color := New GxColor.CreateRGB(65, 105, 225);
// Get express report
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, a border of the specified color appears on clicking the tree map.
See also: