[Overview][Types][Classes][Procedures and functions][Index] |
Determines if the specified tree node can be expanded in the shell control.
Source position: shellctrls.pas line 87
protected function TCustomShellTreeView.CanExpand( |
Node: TTreeNode |
):Boolean; override; |
Node |
|
Tree node examined in the method. |
True when the tree node contains child nodes and be expanded.
CanExpand is an overridden Boolean function used to determine if the specified tree node can be expanded in the shell control. Node contains the TTreeNode examined in the method.
CanExpand calls the inherited method to signal the OnExpanding event handler (when assigned). No additional actions are performed if the inherited method returns False.
CanExpand temporarily disables the AutoExpand functionality in the shell control, and removes all child tree nodes in Node. The child nodes are re-created using the PopulateTreeNodeWithFiles method. This ensures that the shell control reflects the current content in the local file system during execution of the method. The value in AutoExpand is restored to its original value prior to exiting from the method.
The entire update process is done in a BeginUpdate / EndUpdate block to reduce the number of screen refreshes in the method.
|
Adds tree nodes for file system objects found starting at the specified node / path. |
|
|
Unfold a tree-item when user clicks it or an item activated by code. |
|
|
Represents tree nodes in TShellTreeView. |
|
|
Unfold a tree-item when user clicks it or an item activated by code. |