MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




ensure pushpin is visible

This is a discussion on ensure pushpin is visible within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi everyone, When I add or move a pushpin, is there any way to tell if it's in the visible ...


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 05-08-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ensure pushpin is visible

Hi everyone,

When I add or move a pushpin, is there any way to tell if it's in the visible area of the map?
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 05-09-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Hope this will get you going in the right direction (ok, its a pun) I'm just counting the number of pushpins visible but you could use this to test the pushpin names compared to the name of the pushpin you just added.

Code:
'Query number of pushpins visible on screen

Dim objmap As MapPointctl.Map
Set objmap = MappointControl1.ActiveMap
Dim objDataSet As MapPointctl.DataSet
Dim objRecords As MapPointctl.Recordset

Dim objLocs(1 To 5) As MapPointctl.Location
Set objLocs(1) = objmap.XYToLocation(objmap.Left, objmap.Top)
Set objLocs(2) = objmap.XYToLocation(objmap.Width, objmap.Top)
Set objLocs(3) = objmap.XYToLocation(objmap.Width, objmap.Height)
Set objLocs(4) = objmap.XYToLocation(objmap.Left, objmap.Height)
Set objLocs(5) = objmap.XYToLocation(objmap.Left, objmap.Top)

lngCount = 0

For Each objDataSet In objmap.DataSets
Set objRecords = objDataSet.QueryPolygon(objLocs)
objRecords.MoveFirst
Do While Not objRecords.EOF
lngCount = lngCount + 1
objRecords.MoveNext
Loop
Next
MsgBox "Number of records in polygon: " & lngCount
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 05-13-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ensure pushpin is visible

Thanks John,

I'll try and get my head round that.

Chris
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
ensure, pushpin, visible


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
having the driver always be visible BobFromBoston MapPoint 2006/2009 Discussion 2 07-31-2005 01:51 PM
How to tell if an objects location is visible? Anonymous MapPoint 2006/2009 Discussion 2 06-28-2004 09:15 AM
Finding Pushpin Name by clicking on the Pushpin?(MP 2002) NickSP MapPoint 2006/2009 Discussion 4 01-10-2003 01:11 PM


All times are GMT -5. The time now is 04:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, 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