Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

panning in ocx

This is a discussion on panning in ocx within the MapPoint Desktop Discussion forums, part of the Map Forums category; using VB5, MP2004, I have a map control within a picturebox. I don't want the user to be able to ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    panning in ocx

    using VB5, MP2004, I have a map control within a picturebox. I don't want the user to be able to click on the map, except to pan. I have set cancel in the beforeclick event. If I move the mouse close to the edge of the map then the mouse pointer changes to an arrow (as per normal mp panning). Is there any way to read this pointer state change? It's not reported in the controls mousepointer property. Alternatively is there another way of telling if the control is in the pan mode? If not then how about preventing the pointer change?
    If I add 4 pan buttons but leave the pointer alone then it's confusing to the user. If I can detect the pointer change then I can implement a pan command in the beforeclick event.

  2. #2
    Daniel is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    8
    You can prevent the pointer change by disabling the AllowEdgePan property.
    Alternatively by utilising the LocationToX and LocationToY methods you can determin the position of cursor and if it's within the pan border area of approx 15 pixels from the map edge then activate the Pan method.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Panning in MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-12-2004, 09:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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