Getting Menu Object attached to Window Object

Hello,

I would like to iterate through each DHTMLX window inside a dhtmlXWindows object and change the states of file menus in each window. How can I access the file menu object attached to each DHTMLX window so I can change each attached file menu’s state while using the forEachWindow function?

Hello,

you may use forEachWindow method to iterate through each DHTMLX window:

dhxWins.forEachWindow(function(w){ var menu = w.getView().menu; ... });

Very cool!

Thank you. I’ll give it a shot.