Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectoryFolder.ContextMenu Method

Displays the context menu for this file/folder.

Syntax

VB.NETobject.ContextMenu(ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS, ByVal ExtendedVerbs As Boolean)
VBobject.ContextMenu(ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS, ByVal ExtendedVerbs As Boolean)
C#.NETvoid object.ContextMenu(OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos, bool ExtendedVerbs);
VC++HRESULT object->ContextMenu(OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos, VARIANT_BOOL ExtendedVerbs);
CHRESULT object->raw_ContextMenu(OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos, VARIANT_BOOL ExtendedVerbs);

object

A SftDirectoryFolder object.

xPos

The x screen coordinate in pixels where the top, left corner of context menu is to be located.

yPos

The y screen coordinate in pixels where the top, left corner of context menu is to be located.

ExtendedVerbs

Defines whether extended verbs should be accessible if available.

ExtendedVerbsDescription
TrueExtended verbs are added to the context menu, if available.
FalseNo extended verbs are added to the context menu.

Comments

The ContextMenu method displays the context menu for this file/folder.

The context menu is not implemented by SftDirectory. The context menu and its contents are created and managed by the Windows Shell and available Shell extensions.

Extended verbs are displayed by Windows Explorer, if the user right-clicks while pressing the Shift key. Not all folders offer extended verbs. An example of an extended command under Windows XP is the "Pin to Start Menu", which is available for (non-executable) files.

Depending on the RenameStyle property settings, the Rename menu entry may be available.

The ShowingContextMenu event occurs when the context menu is about to be shown.

The control's ContextMenu method can be used to display the context menu for all selected folders.

See Also SftDirectoryFolder Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.