ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamShellTree.InvokeCommandOnSelected Method

Executes a context menu command for the selected item.

Syntax
Pascal
function InvokeCommandOnSelected(const Command: String): Boolean;

Use InvokeCommandOnSelected to execute a command of the context menu on the selected item. verb is the name of the command, which should be executed. Which commands are available depends on the selected object. For a list of common commands see TShellBrowser.InvokeContextMenuCommand.

The following example will paste files or folders from the clipboard to the selected folder:

JamShellTree.InvokeCommandOnSelected('paste');

The following example will show properties dialog for the selected folder:

JamShellList.InvokeCommandOnSelected('properties');
Copyright (c) 2011. All rights reserved.