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

Hi I have a problem. When i draw a line and the....

This is a discussion on Hi I have a problem. When i draw a line and the.... within the MapPoint Desktop 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 ...

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

    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.


  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to draw a line between points
    By bobil in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-25-2006, 08:23 AM
  2. Mappoint 2004 Line thickness problem ?
    By Danny in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-30-2005, 12:27 PM
  3. draw simple line between points
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-27-2004, 04:15 AM
  4. As I draw a line and then a pushpin on that line, ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-16-2002, 08:35 AM
  5. How do i change the default Line draw width (toolb....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-26-2001, 11:39 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 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83