MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Just hand it to me

This is a discussion on Just hand it to me within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to programatically select the pan mode, (the cursor is a hand) rather than a pointer that allows me ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-08-2005
Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 41
Just hand it to me

I want to programatically select the pan mode, (the cursor is a hand) rather than a pointer that allows me to rubber band a square.

Can someone help, I looked through the docs.?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-08-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

You have 2 options to pan programatily:

this is the first:

Code:
            double Lat;
            double Lon; 
            Int32 x = MP.Height / 2; 
            Int32 y = MP.Width / 2; 
            double Alt = MP.ActiveMap.Altitude; 
            Location Loc = MP.ActiveMap.XYToLocation(x, y); 
            pos.CalcPos(Loc, out Lat, out Lon); 
            Lat += 1; 
            MP.ActiveMap.GoToLatLong(Lat, Lon, Alt);
this is the other:
Code:
MP.ActiveMap.Pan(GeoPanCmd.geoNorth, Amount);
With the first one you can of course exacly pan the amount of distance you want. The CalcPos does a Geocode from out of the location. You find various article here to do it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-08-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Wilfried, That's not the answer I wanted but it is the answer I needed.

What I wanted to do was be able to use the mouse pan mode in my control. I found the two settings:

MapCntrl.MousePointer = geoPointerHand
MapCntrl.ActiveMap.DragBehavior = geoDragHand

But my next question was was going to be on how to hold a perspective (position and altitude/zoom) while (or after) adding new reverse-geocoded pins.

I think your code is perfect for that thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-09-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

Quote:
That's not the answer I wanted but it is the answer I needed
thats good news
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
customized drawing toolbar with circle and free hand only? Anonymous MapPoint 2006/2009 Discussion 1 01-19-2005 03:37 PM
I am trying my hand on Mappoint . I am trying to p.... Anonymous MapPoint 2006/2009 Discussion 1 08-01-2002 09:18 PM


All times are GMT -5. The time now is 01:21 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Pamporovo Ski
Pamporovo ski holidays are situated high in the Rhodope Mountains. With an average of 270 days of beautiful sunshine and good snow, Pamporovo ski holidays are value for money.

Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.

Cuba Holiday
A Cuba Holiday has so much to offer with numerous different cultures affecting the sights, sounds and tastes. Visit this fascinating country with dealchecker.co.uk.

Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!

Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?

Inclusive package holidays
Choose one of the many inclusive package holidays at Travel.co.uk and save a lot of trouble and money too!

Holidays to Florida
Sun and sea! Get info on holidays to Florida, only at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51