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 9 of 9

Emulate Radius shape

This is a discussion on Emulate Radius shape within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello: I'm using Visual Basic 6 and Mappoint 2002, and I need to use programmatically the functionality of Radius shape. ...

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

    Emulate Radius shape

    Hello:

    I'm using Visual Basic 6 and Mappoint 2002, and I need to use programmatically the functionality of Radius shape.

    Is it possible to allow users using only Radius shape? Could I emulate this shape functionality?

    Thanks in advance.

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Code:
    Dim objmap As MapPointCtl.Map
    Set objmap = MappointControl1.ActiveMap
        
    Dim objShapes As MapPointCtl.Shapes
    Dim objshape As MapPointCtl.Shape
    Set objShapes = objmap.Shapes
    
    Set objshape = objShapes.AddShape(geoShapeRadius, objmap.FindResults("Denver, CO").Item(1), 500, 500)
    objshape.Name = "MyShape"

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks a lot, but that's not what I mean...

    I want the user to "draw" a Radius shape (as in MapPoint), but without the drawing toolbar, because I only need the Radius shape, but not Rectangle, etc.

    Sorry if I'm not very clear in my explanations. :'-( My English is a bit bad...

  4. #4
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Take a look at this, it may get you a solution.

    Access some hidden features in MapPoint2002 ActiveX control
    http://www.mp2kmag.com/mappoint/disc...extend+activex

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks a lot, I'll try it!!!

  6. #6
    Gianmaria is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    47
    Did you find any solution.. i have same problem...

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Draw a shape when the user clicks on the map with the centerpoint where he click and a radius of almost zero. Then when he move the mouse away resize the shape according to the right diameter. Stop drawing when he click again.

    Or some other scenario, all depending on the application.

  8. #8
    renatoa is offline Junior Member Yellow Belt
    Join Date
    Feb 2006
    Posts
    29
    This approach assume you have a mouse move event in MP, but it's not existing, as I know.

    Renato

    Quote Originally Posted by Wilfried View Post
    Hi,

    Draw a shape when the user clicks on the map with the centerpoint where he click and a radius of almost zero. Then when he move the mouse away resize the shape according to the right diameter. Stop drawing when he click again.

    Or some other scenario, all depending on the application.

  9. #9
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Yes there is. There is a MouseDown, MouseUp and MouseMove event.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Does an object reside in my Shape or Shape boundaries?
    By hotrdd in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-04-2005, 10:51 PM
  2. zip codes within a shape or radius
    By rforkner in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-12-2005, 08:25 PM
  3. Cuting and pasting radius shape
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-05-2004, 05:31 AM
  4. Don't want radius shape to increase it's size when I zoom In
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-07-2004, 05:58 PM
  5. Get all pushpins in a shape (Radius, Rectangle ...)
    By kobkob in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-18-2004, 05:44 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