ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Controls.BaseShellListView.TJamCustomFileList.InvokeCommandOnSelected

Executes a command of the context menu of the current object.

Syntax
Pascal
function InvokeCommandOnSelected(const pCommand: TShellCommand): Boolean;
Parameters 
Description 
const pCommand: TShellCommand 
The command, which should be executed, see cref="TShellAction">. Which commands are available depends on the current object.  

True if the command was executed successfully.

Use InvokeCommandOnSelected to execute a command of the context menu of the current object.

The following example will show the properties of the selected file(s):

JamFileList.InvokeContextMenuCommand(saProperties);

The following example will copy the selected file(s) to the clipboard:

JamFileList.InvokeContextMenuCommand(saCopy');