Is it possible to add a new context menu option when clicked right mouse button on alarm row aescreen in an easy way?
I found function aes_onRightClick() but no parameter to setup a new context option. Following this function, I go to function aes_displayMenu() that it gets all menus from aes table configuration panel.
Need I change aes_displayMenu() function?
Add new context menu option when clicked right mouse button on alarm row aescreen
- yosu
- Posts:22
- Joined: Wed Mar 14, 2012 4:14 pm
Add new context menu option when clicked right mouse button on alarm row aescreen
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Add new context menu option when clicked right mouse button on alarm row aescreen
In the function aes_displayMenu() the content of the popup menu is created based on the global AES settings.
At the end of the function the CTRL function popupMenu() is called which opens the popup menu. The "answer" of the function popup menu is then used at the function aes_menuFunctionHandler() to start the action linked to the selected popup menu item.
If you want to add a new option you have to modify both functions: aes_displayMenu() and aes_menuFunctionHandler().
When the changing the functions you have to ensure that already existing functionality still works.
Best Regards
Leopold Knipp
Senior Support Specialist
At the end of the function the CTRL function popupMenu() is called which opens the popup menu. The "answer" of the function popup menu is then used at the function aes_menuFunctionHandler() to start the action linked to the selected popup menu item.
If you want to add a new option you have to modify both functions: aes_displayMenu() and aes_menuFunctionHandler().
When the changing the functions you have to ensure that already existing functionality still works.
Best Regards
Leopold Knipp
Senior Support Specialist