ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellControls.TJamShellTree.InvokeCommandOnSelected

Executes a shell command on the objects selected in the control.

Syntax
Pascal
function InvokeCommandOnSelected(const pCommand: TShellCommand): Boolean;
Parameters 
Description 
const pCommand: TShellCommand 
The shell command that should be executed. 

Boolean: True if the command was executed successfully; False otherwise.

Use InvokeCommandOnSelected to execute a command of the context menu on the selected item. pCommand is the the command, which should be executed. Which commands are available depends on the selected object.

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

JamShellTree.InvokeCommandOnSelected(saPaste);

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

JamShellList.InvokeCommandOnSelected(saProperties);