MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Preventing the user from moving lines

This is a discussion on Preventing the user from moving lines within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, I currently draw lines (between pushpins) to represent the approximate direction of travel of a trailer. The problem ...


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 03-08-2007
Junior Member
White Belt
 
Join Date: Mar 2007
Posts: 5
Preventing the user from moving lines

Hi all,

I currently draw lines (between pushpins) to represent the approximate direction of travel of a trailer. The problem I'm having is the user can currently select the lines and move them about all ove the place.

Is there anyway I can prevent the user from selecting the lines?
Another somewhat related problem is that the lines appear above the pushpins. That's not inherently a problem - but when the user clicks a pushpin, the lines are getting selected. I need the pushpin to be selectable as it contains useful information.

Many thanks

Simon
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 03-10-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Preventing the user from moving lines

Hi,

Put an event handler in SelectionChange. There you check if the user has selected a thing that you dont want. To unselect it draw some object in the ocean, select it and delete it.

BTW you can do the same with the pushpins because they are moveable too.

As for the ZOrder question, there is a ZOrder property on the shapes (lines) that you can set so that they are behind the pushpins.
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
lines, moving, preventing, user


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
Preventing display of menu on R. Click of MapPoint Control joer1234 MapPoint 2006/2009 Discussion 3 04-07-2005 04:38 PM
Considering Moving To MP2k4 Anonymous MapPoint 2006/2009 Discussion 1 05-04-2004 03:46 PM
Almost urgent --- Disable user from moving or deleting lines kwargo MapPoint 2006/2009 Discussion 0 02-13-2004 10:43 AM
Preventing 'Save As' Dialog (using the OCX!) daxydoggie MapPoint 2006/2009 Discussion 1 08-15-2003 03:07 PM
moving pushpins joseph MapPoint 2006/2009 Discussion 1 02-27-2003 11:44 PM


All times are GMT -5. The time now is 11:14 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