wodTelnetDLX ActiveX Control - MenuClick Event
    
 

Description

Fires when user right-clicks on a menu item.


Syntax

Private Sub object_MenuClick(ID)



The MenuClick Event syntax has these parts:

Part Description
object A wodTelnetDLX object.
ID A Long value. Holds ID of the menu that was clicked.

Remarks

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

MenuClick event is fired when user clicks using right mouse button on wodTelnetDLX window area. Besides default cut/copy/paste commands that are internally implemented, you might have defined your own menu items (through ContextMenu property).

ID argument will hold menu ID of the item that was clicked. wodTelnetDLX will not make any action on such user-defined events - you should implement your own code.

For example, to add menu item 'Test', you can use code like this (in VB)

... before you call Connect method you should do...

If wodTelnetDLX1.ContextMenu Then
   InsertMenu wodTelnetDLX1.ContextMenu, 32768, MF_BYCOMMAND + MF_STRING, 32768, "Test"
End If
 

Private Sub wodTelnetDLX1_MenuClick(ByVal ID As Long)
      MsgBox "text"
End Sub
 

To get result like this: