Community of VE/MapPoint Users and Developers
This is a discussion on Hi I have a problem. When i draw a line and the.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi I have a problem. When i draw a line and then select it, a box appears on the start ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I have a problem. When i draw a line and then select it, a box appears on the start and the end of the line. I do not want that boxes to appear when the user selects the line. I nknow that is for the user to know that he/she has selected that line, but i do not need that. Please help. |
| |||
|
One way to do that is to use the BeforeClick evenement and then to cancel the click. It looks like that: Private Sub ..._BeforeClick(ByVal Button As Long, ByVal Y As Long, Cancel As Boolean) On Error GoTo errBeforeClick Dim oResults As MapPoint.FindResults Dim oResult As Object If Button = 1 Then Set oResults = gMap.ObjectsFromPoint(X, Y) For Each oResult In oResults If TypeOf oResult Is MapPoint.Shape Then Cancel = True Exit Sub End If Next End If Exit Sub errBeforeClick: Err.Clear Cancel = True Exit Sub End Sub Not really pretty but it works! Doud |
![]() |
| Tags |
| draw, line, problem |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to draw a line between points | bobil | MapPoint 2006/2009 Discussion | 2 | 05-25-2006 09:23 AM |
| Mappoint 2004 Line thickness problem ? | Danny | MapPoint 2006/2009 Discussion | 1 | 05-30-2005 01:27 PM |
| draw simple line between points | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-27-2004 05:15 AM |
| As I draw a line and then a pushpin on that line, .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-16-2002 09:35 AM |
| How do i change the default Line draw width (toolb.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-26-2001 12:39 PM |