ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TShellBrowser.ShowContextMenu Method (TPoint, TMenuItem)

Shows the context menu for files or folders as submenu of an existing menu item.

Syntax
Pascal
function ShowContextMenu(const Pos: TPoint; ShellMenuAnchor: TMenuItem): String; overload;
Parameters 
Description 
const Pos: TPoint 
Position on the screen at which the context menu should appear. 
ShellMenuAnchor: TMenuItem 
A menu item that should show the Shell context menu as submenu. 

String: the shell command that was executed, an empty string if no shell comand was executed.

Copyright (c) 2011. All rights reserved.