ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamCustomFileList.InvokeContextMenuCommand Method

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

Syntax
Pascal
function InvokeContextMenuCommand(const Command: String): Boolean;
Parameters 
Description 
const Command: String 
The name of the command, which should be executed. Which commands are available depends on the current object. Always available and most important are: default Will execute the default action for a file and usually open it. properties Will show the properties dialog for the current object.  

Use InvokeContextMenuCommand 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('properties');

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

JamFileList.InvokeContextMenuCommand('copy');
Copyright (c) 2011. All rights reserved.