I am still a relative newcomer to MapSuite and I do not have a good understaning of all the events and handlers built into winformsMap in the Desktop Edition. I am hoping someone can point me in the right direction to save me a lot of trial and error.
We have been using the built in functions of the winformsMap to provide pan and zoom functionality on the Map. We use the click and drag to pan. We also use the DoubleClick to zoom in and out. We have also been using the click and Drag with the Shift key down to select a rectangle area and zoom to that extent. We would like to refine the extent for this last zoom function so that it will zoom to include all of the rectangle selected instead of just a "best fit". We have found that if the rectangle selected with the shift key down is not in a similar proportion to the window that the extent of the zoom does not always cover all of the rectangle.
I need to know how to override this built in zoom in the winformsMap. I have been searching and it appears we may need to use the InteractiveOverlay but I have tried to set breakpoints in the MapDownCore, MapUpCore, MouseClickCore. I can capture the MouseDownCore but I do not get the MouseUpCore or MouseClickCore.
Can anyone give me some hints of a method to intercept the mouse clicks with the shift key in order to override the calculations on the extent on winformsMap? If any of the sample applications do this type of behavior it would be a great help.
Any help would be greatly appreciated.
Thanks in advance
Richard