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
The right mouse button is released or Shift-F10 is pressed requesting a context menu.
VB.NET | Private Sub object_ContextMenuEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ContextMenuEvent |
VB | Private Sub object_ContextMenu(ByVal Part As SftBoxPortionConstants, ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS) |
C#.NET | void object_ContextMenuEvent(object sender, EventArgumentType e); |
VC++ | void OnContextMenuobject(enum SftBoxPortionConstants Part, short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
C | HRESULT OnContextMenuobject(enum SftBoxPortionConstants Part, short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
object
Part
Describes the area where the mouse button was clicked.
Part | Value | Description |
---|---|---|
partSftBoxStatic | 1 | Static portion |
partSftBoxEdit | 2 | Edit control portion |
partSftBoxDropDown | 3 | Drop down portion |
Button
Describes the button(s) that are pressed. The Button argument is a bit field with bits corresponding to the left button, right button and middle button. These bits correspond to the values shown below. The bits set indicate the button that caused the event.
Button | Value | Description |
---|---|---|
0 | Shift-F10 was pressed requesting a context menu. xPos and yPos coordinates are 0. | |
constSftBoxRightButton | 2 | The right mouse button was pressed. |
Shift
Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. It indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.
Shift | Value | Description |
---|---|---|
constSftBoxShiftMask | 1 | The SHIFT key is down. |
constSftBoxCtrlMask | 2 | The CONTROL key is down. |
constSftBoxAltMask | 4 | The ALT key is down. |
xPos
The x coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used. If Shift-F10 caused this event to occur, xPos is 0. The coordinates xPos and yPos are relative to the top, left corner of the control.
yPos
The y coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used. If Shift-F10 caused this event to occur, yPos is 0. The coordinates xPos and yPos are relative to the top, left corner of the control.
The ContextMenu event occurs when the right mouse button is released or Shift-F10 is pressed requesting a context menu.
See Also SftBox Object | Object Hierarchy