ElementsActive: Boolean;
The ElementsActive property switches between the Be Elements and Be Levels selection modes.
The property will be applied only when the By Elements and Levels selection mode is enabled.
Available values:
True (by default). The By Elements selection mode is selected.
False. The By Levels selection mode is selected.
Executing the example requires the following components on the form: Button named Button1, DimensionTree named DimensionTree1 and UiDimension named UiDimension1. A calendar dictionary is selected as a data source for UiDimension, and UiDimension1 is selected as a data source for DimensionTree.
Add a link to the ExtCtrls system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
DimensionTree1.ElementsActive := Not DimensionTree1.ElementsActive;
End Sub Button1OnClick;
After executing the example, clicking the button switches the selection modes.
See also: