CustomCommandsZoomToLayer() is not Enabled, Help

445
1
03-30-2011 12:03 PM
ViridianaGO
New Contributor III
Hi everybody! I have a doubt and I know you can help me. I am doing an application whit ArcGis Engine using Java and I did a menu with ToolbarMenu() in which I inserted: ControlsZoomToSelectedCommand(). When I run my application I select the features and try to use this command but this is not enabled. Can somebody tell me what I am doing wrong please???

menu.addItem(new ControlsZoomToSelectedCommand(), 0, 0, false, esriCommandStyles.esriCommandStyleIconAndText);


Thank you very much.
0 Kudos
1 Reply
ViridianaGO
New Contributor III
0 Kudos