SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the area where selection changes occur.
Get
VB.NET | Area = object.SelectionArea As SftTreeSelectionAreaConstants |
VB | Area = object.SelectionArea As SftTreeSelectionAreaConstants |
C#.NET | SftTreeSelectionAreaConstants Area = object.SelectionArea; |
VC++ | enum SftTreeSelectionAreaConstants Area = object->SelectionArea; enum SftTreeSelectionAreaConstants Area = object->GetSelectionArea(); |
C | HRESULT object->get_SelectionArea(enum SftTreeSelectionAreaConstants* Area); |
Put
VB.NET | object.SelectionArea = Area As SftTreeSelectionAreaConstants |
VB | object.SelectionArea = Area As SftTreeSelectionAreaConstants |
C#.NET | SftTreeSelectionAreaConstants object.SelectionArea = Area; |
VC++ | enum SftTreeSelectionAreaConstants object->SelectionArea = Area; void object->PutSelectionArea(enum SftTreeSelectionAreaConstants Area); |
C | HRESULT object->put_SelectionArea(enum SftTreeSelectionAreaConstants Area); |
object
A SftTreeItems object.
Area
Defines the area where selection changes occur.
Area | Value | Description |
---|---|---|
selSftTreeAll | 0 | Clicking anywhere on an item (all cells, tree lines, row header, etc.) will change the selection. |
selSftTreeCells | 1 | Clicking on any cell of an item will change the selection. |
selSftTreeCell1 | 2 | Clicking on the cell in the first column will change the selection. |
selSftTreeCellText1 | 3 | Clicking on the cell text in the first column will change the selection. |
selSftTreeCellsRow | 4 | Clicking on the row header or any cell of an item will change the selection. |
selSftTreeCell1Row | 5 | Clicking on the row header or the cell in the first column will change the selection. |
selSftTreeCellText1Row | 6 | Clicking on the row header or the cell text in the first column will change the selection. |
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