I am creating a template for ArcGis JTX. This is a mxd file, with a vba onload event handler which removes some functionality from vanilla ArcMap.
I'm stumped on one problem: double clicking on a featurelayer opens a layer properties screen. I'd like to disable that functionality.
An ideal solution would be to replace the command itself with an ICommand that shows a messagebox with the text "Disabled by administrator"
Another (less than ideal) solution would be to remove the ICommand from the ICommandsCollection, but I haven't found such an object in the documentation.
As an alternative, I'd replace the doubleclick eventhandler from the featurelayer, disable shortcuts and remove buttons from toolbars and menus. It's a lot of programming, and I have yet to learn how to replace the eventhandler.
Do you have any idea if one of these solutions can be done?
tl;dr: I need a function DisableCommand(UID) in an mxd with vba.