There is an application written on arcobjects 10, c#
In it there is an AxToolbarControl (it is a toolbar). In this toolbar there are items: select item, zoom in, zoom out, pan, full extent, identify, measure.
I want to develop the following behavior:1) User clicks the pan item. Then he moves on the map (using mouse)2) In pan mode user clicks on the element on the map (he use right mouse button)
Now I want select this element. I can not get selected element on the map like this:
IGraphicsContainerSelect gcselect = (IGraphicsContainerSelect)Map1.ActiveView.FocusMap;IEnumElement els = gcselect.SelectedElements;...
Because there are not any elements in gcselect.
Can you give some links or/and advices/ideas how select element on the map please?Any help on this would be greatly appreciated. Thanks in advance.
أكثر...
In it there is an AxToolbarControl (it is a toolbar). In this toolbar there are items: select item, zoom in, zoom out, pan, full extent, identify, measure.
I want to develop the following behavior:1) User clicks the pan item. Then he moves on the map (using mouse)2) In pan mode user clicks on the element on the map (he use right mouse button)
Now I want select this element. I can not get selected element on the map like this:
IGraphicsContainerSelect gcselect = (IGraphicsContainerSelect)Map1.ActiveView.FocusMap;IEnumElement els = gcselect.SelectedElements;...
Because there are not any elements in gcselect.
Can you give some links or/and advices/ideas how select element on the map please?Any help on this would be greatly appreciated. Thanks in advance.
أكثر...