detaches a context menu from a window's button
menuObj | object | the context menu's object (returned by the attachContextMenu method) |
// attach a context menu to a button of the window #1
var myMenuPark = w1.button("park").attachContextMenu();
// detach the context menu from a button of the window#1
w1.button("park").detachContextMenu();
myMenuPark = null;
Back to top