Hi to all,
Despite I have some experience using dhtmlx librairies (grid and toolbar), I can’t figure how to work with context menus in an HTA file. Everytime I launch the page, I get the error: <‘tbd’ is null or not an object>. Here is the code I’m using, and the full project is attached below:
var oMenu = new dhtmlXMenuObject(contextArea);
oMenu.setIconsPath("imgs/");
oMenu.renderAsContextMenu();
oMenu.addNewSibling(null, "file", "File", false);
oMenu.addNewChild("file", 0, "file_new", "New", false);
oMenu.setHotKey("file_new", "Ctrl+N");
oMenu.addNewSeparator("file_new");
If you prefer, you can rename the HTA file with an HTML extension for testing. Any tips or suggestions are welcome.
Thank you in advance,
Michel
Menu.zip (97.5 KB)