I would like to trap the onContextMenu events when a user do a right-clic with the mouse on the table of contents.
The goal of the fonction is to not allowed the possibility to open the attribute table for a certain featurelayer. When the user right-clic on the table of contents, I will check what is the name of the selected layer, and if it's the concerned layer, I will removed the open attribute table from the context menu
Thanks everybody for your help.
Ville de Laval