Community of VE/MapPoint Users and Developers
This is a discussion on Emulate Radius shape within the MapPoint 2006/2009 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. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Emulate Radius shape 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. |
| ||||
| 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"
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
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... |
| ||||
|
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
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
This approach assume you have a mouse move event in MP, but it's not existing, as I know. Renato Quote:
|
| |||
|
Hi, Yes there is. There is a MouseDown, MouseUp and MouseMove event.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| emulate, radius, shape |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does an object reside in my Shape or Shape boundaries? | hotrdd | MapPoint 2006/2009 Discussion | 1 | 08-04-2005 10:51 PM |
| zip codes within a shape or radius | rforkner | MapPoint 2006/2009 Discussion | 2 | 01-12-2005 08:25 PM |
| Cuting and pasting radius shape | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-05-2004 05:31 AM |
| Don't want radius shape to increase it's size when I zoom In | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-07-2004 05:58 PM |
| Get all pushpins in a shape (Radius, Rectangle ...) | kobkob | MapPoint 2006/2009 Discussion | 2 | 04-18-2004 05:44 AM |