MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-15-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
draw, line, problem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 09:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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