Programatically selecting the Pan or Select tool?

Anonymous
06-24-2004, 05:55 PM
Hi All,

Does anyone know how to pick the mouse tool from within a program? I am using the OCX and only want expose a portion of what is on the standard toolbar.

All the other stuff is under control, but I can't seem to find a way to do the relatively simple task of changing the mouse tool from pan to select and vise versa.

I wish there was something like

mpApp.ActiveTool = geoPanTool

but there does not seem to be.

Can someone out there please embarrass me with a simple answer?

Anonymous
06-25-2004, 09:23 AM
You can set the point with the DragBehavior property

objMap.ActiveMap.DragBehavior = geoDragHand
objMap.ActiveMap.DragBehavior = geoDragBox

Anonymous
06-28-2004, 07:42 AM
Thanks! :D

 
Web mp2kmag.com
mapforums.com