Event: EventContextMenuPointSelected for XTable
- Updated2024-09-12
- 2 minute(s) read
User dialog boxes > Events > Event: EventContextMenuPointSelected for XTable
Event: EventContextMenuPointSelected for XTable
Is triggered in user dialog box when an item from the context menu is selected.
EventContextMenuPointSelected(ByRef This, Row, Col, MenuPoint)
This | Object that triggers this event. |
Row | Specifies the column number of the cell. |
Col | Specifies the row number of the cell. |
MenuPoint | Specifies the MenuPoint object containing the selected context menu item. |
The following example shows the functionality of a context menu in an extended table. If you right-click a cell, the example creates a context menu and displays the selected entry of the context menu.
Sub XTable1_EventContextMenuPointSelected(ByRef This, Row, Col, MenuPoint) Call MsgBox("Row: " & Row & "; Column: " & Col & VBCrLf & "Menu entry: " & MenuPoint.Text) End Sub Sub XTable1_EventContextMenuShowing(ByRef This, Row, Col, MenuPoints) Call MenuPoints.Add("Menu 1",1) Call MenuPoints.Add("Menu 2",2) End Sub
Procedures
Checking a User Dialog Box Entry | Creating a Dynamic User Dialog Box | Creating a Procedure in the Script of a User Dialog Box | Creating a User Dialog Box without Linking Variables | Creating an Extended Table | Displaying Graphics in Selection Lists | Enabling Controls | Opening the Dialog Editor | Responding to User Entries in User Dialog Boxes | Saving and Restoring the Last Dialog Box Position | Saving Control Groups for User Dialog Boxes | Specifying the Default Button | Tabulator Order in a User Dialog Box | Using a Script to Fill a Selection List | Using Channel Selection Lists | Using Hotkeys in a User Dialog Box | Using the Flex Properties