[Overview][Types][Classes][Procedures and functions][Index] |
Performs actions needed when a new item is selected in the shell control.
Source position: shellctrls.pas line 110
protected procedure TCustomShellTreeView.DoSelectionChanged; override; |
DoSelectionChanged is an overridden method used to perform actions needed when a new item is selected in the shell control. DoSelectionChanged calls the inherited DoSelectionChanged method, and ensures that a TCustomShellListView control assigned to ShellListView is synchronized to the current selection in the class.
No actions are performed in the method if values for either ShellListView or Selected have not been assigned (contain Nil).
Selected contains the current tree node selected in the shell control, and is used to determine if the selection is a file, directory, or other device. When it is a directory, its path is assigned to the Root property in ShellListView.
If Selected does not represent a directory, the path refers to a file name that must exist on the local file system. An EShellCtrl exception is raised if the selected item does not exist. If Selected has a parent tree node, its path is assigned to the Root property in ShellListView. If no parent is available, the Root property in ShellListView is set to an empty string ('').
Raises an EShellCtrl exception if Selected refers to a file name that no longer exists on the local file system.
|
Connects this ShellTreeView to a ShellListView. |
|
|
The base class that defines a list view control to display the files, directories and other objects (such as devices) from the local file system. |
|
|
Indicates the initial directory path whose objects are displayed in the control. |
|
|
Represents tree nodes in TCustomShellTreeView / TShellTreeView. |
|
|
Exception raised for errors occurring in shell controls. |
|
|
The selected tree node in the control. |
Version 4.0 | Generated 2025-05-03 | Home |