MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Show stops with address in text box

This is a discussion on Show stops with address in text box within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am writing a delphi application with mappoint controls. In my program I can add several stops, set them up ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Show stops with address in text box

I am writing a delphi application with mappoint controls. In my program I can add several stops, set them up as pushpins and optimize the route. Also I can show the address in a text box when I move the mouse over to the stops. However, it is so awkward since the mouse has to be placed on the exact location on the map to get the text box. Is there anyway that the mouse doesn't need to be put on the exact location on the map and still shows me the text box with address? I am using ObjectFromPoint to convert the X and Y coordinates to get the mouse location. Is it ok or if there is another way to do it. If someone shows me some sample codes that will be great. 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
  #2 (permalink)  
Old 03-12-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Instead of ObjectsFromPoint you could use FindNearby. The distance has to be according the zoom level (Altitude), so that when the mouse is near the pushpin, the textbox can popup.

To not slow down I think it is good to only calculate when the mouse does not move for some time. Eg by posting a custom message to a thread in the MoseMove event, and the thread can fire an event to a custom message handler when it did not received a mouse move message for a while. A timer can do also, not sure what is the best.
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 03-14-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi

Thanks for your reply.

But I just have a stupid question cuz I am still new to the mappoint controls. If I don't use ObjectsFromPoint, how can I get the location from the X and Y coordinates so that I can use the FindNearBy method?
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 03-14-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

You can use XYToLocation to get a Location object from x,y points.
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

Tags
address, box, show, stops, text


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
How to add text to a map Anonymous MapPoint 2006/2009 Discussion 1 07-21-2004 01:55 PM
TEXT Anonymous MapPoint 2006/2009 Discussion 6 07-12-2004 04:39 PM
TEXT WITHIN COUNTIES Anonymous MapPoint 2006/2009 Discussion 0 07-09-2004 01:54 PM
Show information of text balloons Jasmino MapPoint 2006/2009 Discussion 2 03-26-2004 01:19 PM
Text Boxes ClactonEssex Wish List 0 12-10-2002 08:52 AM


All times are GMT -5. The time now is 07:03 PM.


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


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 54 55