MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




getting the clicks on the mapcontrol

This is a discussion on getting the clicks on the mapcontrol within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi ! I am new to vb so maybe it's not exactly a mappoint question: I know with the _mousedown ...


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 02-12-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
getting the clicks on the mapcontrol

Hi !

I am new to vb so maybe it's not exactly a mappoint question:
I know with the _mousedown event I can get the user clicking on the map.

But how do I get the several single clicks on the map e.g. to let the user draw a shape or measure distance?

Thanks


Peter
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 02-13-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 8
MouseDown

Use the MouseDown. MouseMove and MouseUp in conjunction with each other. Set form properties to store the locations ie for each time the user does mousedown with the Ctrl key pressed you log the XY coordinates in an array....

I'm trying to draw a marquee on the map to allow selection of multiple pushpins my mousedown event records the xy start coordinates, my mouseup event records the xy end coordinates - if they are not the same the user has dragged across the map. Convert xy coords to location and calculate width, height of shape and add the shape - well it's a good plan except my shape isn't appearing!

Anyway hope that helps...
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 02-13-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 8
Found this example

Found this example from John Meyer in the forum, might help...


http://www.mp2kmag.com/mappoint/disc...light=addshape
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
Updating map in mapcontrol, through secondary thread malkotian MapPoint 2006/2009 Discussion 1 08-16-2005 02:44 PM
Getting the Zip code and City when user Clicks Map Anonymous MapPoint 2006/2009 Discussion 1 01-21-2005 02:39 AM
Canceling mouse clicks in C++ Anonymous MapPoint 2006/2009 Discussion 3 04-01-2004 02:52 AM
When the user clicks on the MP2K map, the 'Select .... Anonymous MapPoint 2006/2009 Discussion 1 08-11-2001 04:19 AM


All times are GMT -5. The time now is 08:18 AM.


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

Cheap Flights to Sharm
Cheap flights to Sharm El Sheikh are easy to book when you use Holiday Hypermarket. Great weather and wonderful watersports await.

Flights to Cyprus
Find cheap flights to Cyprus on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Cyprus.

Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.

Nile Cruises
Nile cruises are one of the best ways to discover the riches of Egypt. See ancient ruins and lush verdure from the River Nile. Book today!

Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.

Price Comparison
Price comparison is the name of the game at Travel.co.uk. Visit our website and see for yourself.

Cheap Fuerteventura Holidays
Enjoy the deep sands of the Canary Islands. Find cheap Fuerteventura holidays 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 52 53