returns the context menu object attached to a window
dhtmlXMenuObject | the context menu instance |
// attach a global context menu to windows' icons
var myMenu = dhxWins.attachContextMenu();
// somewhere in a different place
var attachedMenu = dhxWins.getContextMenu();
// attach a custom context menu to icon for the window #2
var myMenu2 = w2.attachContextMenu();
// somewhere in a different place
var attachedMenu = w2.getContextMenu();
Back to top