SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Displays the context menu for this file/folder.
VB.NET | object.ContextMenu(ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS, ByVal ExtendedVerbs As Boolean) |
VB | object.ContextMenu(ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS, ByVal ExtendedVerbs As Boolean) |
C#.NET | void 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); |
C | HRESULT 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.
ExtendedVerbs | Description |
---|---|
True | Extended verbs are added to the context menu, if available. |
False | No extended verbs are added to the context menu. |
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