Back to product page

ContextMenu property


Holds HMENU handle to context menu.

Type

Long

Syntax

  • Basic
object.ContextMenu
The ContextMenu(object) syntax has these parts:
objectAn expression evaluating to an object of type wodTelnetDLX

Remarks

This property is only available in OCX (GUI) version of the component.

ContextMenu is a readonly property available only at runtime. It returns HMENU handle to internal context menus, shown when user right-clicks on wodTelnetDLX area.

wodTelnetDLX usually shows default menus - cut, copy and paste. You can add your own menus, by inserting them at proper place. You can use regular API calls, such as InsertMenu, DeleteMenu etc.. to reorganize how context menus are shown.

When user selects your menu item, MenuClick event is fired. wodTelnetDLX has 4 predefined menus with following menu ID values:
CUT 32772
COPY 32773
PASTE 32774
SELECT_ALL 32775

It is suggested that when you add new menu IDs, you should use values 32768 and above. To see how to access ContextMenu property and add new menus in VB, look in MenuClick event.

Platforms

Windows