Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

SelectionArea Property, SftTreeItems Object

Defines the area where selection changes occur.

Syntax

Get

VB.NETArea = object.SelectionArea As SftTreeSelectionAreaConstants
VBArea = object.SelectionArea As SftTreeSelectionAreaConstants
C#.NETSftTreeSelectionAreaConstants Area = object.SelectionArea;
VC++enum SftTreeSelectionAreaConstants Area = object->SelectionArea;
enum SftTreeSelectionAreaConstants Area = object->GetSelectionArea();
CHRESULT object->get_SelectionArea(enum SftTreeSelectionAreaConstants* Area);

Put

VB.NETobject.SelectionArea = Area As SftTreeSelectionAreaConstants
VBobject.SelectionArea = Area As SftTreeSelectionAreaConstants
C#.NETSftTreeSelectionAreaConstants object.SelectionArea = Area;
VC++enum SftTreeSelectionAreaConstants object->SelectionArea = Area;
void object->PutSelectionArea(enum SftTreeSelectionAreaConstants Area);
CHRESULT object->put_SelectionArea(enum SftTreeSelectionAreaConstants Area);

object

A SftTreeItems object.

Area

Defines the area where selection changes occur.

AreaValueDescription
selSftTreeAll0Clicking anywhere on an item (all cells, tree lines, row header, etc.) will change the selection.
selSftTreeCells1Clicking on any cell of an item will change the selection.
selSftTreeCell12Clicking on the cell in the first column will change the selection.
selSftTreeCellText13Clicking on the cell text in the first column will change the selection.
selSftTreeCellsRow4Clicking on the row header or any cell of an item will change the selection.
selSftTreeCell1Row5Clicking on the row header or the cell in the first column will change the selection.
selSftTreeCellText1Row6Clicking on the row header or the cell text in the first column will change the selection.

Comments

The SelectionArea property defines the area where selection changes occur.

The SelectionChange event occurs every time a selection change takes place.

By using the SelectionArea property, the application can specify which areas of an item can cause a selection change when clicked. If the defined area is clicked, the selection changes (Items.Selection). If an area of the item outside the defined area is clicked, only the current item (Items.Current) is changed. In addition, the Items.UpdateCurrentExpandCollapse defines whether the current item (Items.Current) is updated when the expand/collapse button is clicked.

When using a limited area, such as selSftTreeCellText1, which only changes selections when the cell text is clicked, it is preferable to visually indicate this using the selection style selectSftTreeCell1 (see Items.SelectStyle).

In a multiple selection tree control, the CONTROL key (in combination with directional keys) can be used to move the caret location without moving the current selection, unless the style selSftTreeAll is used, in which case the CONTROL key is ignored.

See Also SftTreeItems Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.