MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Drawing shapes on the ocx

This is a discussion on Drawing shapes on the ocx within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Having found out how to select the pushpins within a shape, I'm now toiling to find out how to draw ...


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 09-27-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Drawing shapes on the ocx

Having found out how to select the pushpins within a shape, I'm now toiling to find out how to draw the shape real time, i.e. as the User clicks on the map.

I've been through the help and the only example given is to create the shape using the co-ordinates AFTER the User has clicked them. I've started writing code where the User defines the shape to be drawn, we then grab the location of clicks as they occur and hold them in an array and then use these values to draw the shape when the User double clicks on the map.

I can't believe this there is no way of telling the Map to adopt a certain drawing tool as in the toolbar in MapPoint itself. Can someone please tell me if this can be done !!

Thanks again

Rob
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 09-27-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Check out the code I posted in this thread:

http://www.mp2kmag.com/mappoint/disc...pic.asp?t=3327

Un comment the line below so it will draw the shape.
'objmap.Shapes.AddPolyline objLocs
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-01-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks for the response but this wasn't really what I was meaning. What I'm trying to do is have the shape draw real time. For example, if we're drawing a polyline, clicking once would start the draw, clicking again would stop and draw the first line and start a second and so on until we've drawn the shape and finish it with a double click or something.

Is there no easy way to do this or recreate the PolyLine tool in MapPoint ? If not I'd see this as quite a weakness in the ocx.
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
drawing, ocx, shapes


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
Drawing Shapes Matrices MapPoint 2006/2009 Discussion 7 11-07-2006 11:04 AM
Associate shapes with pin Dazzer MapPoint 2006/2009 Discussion 3 04-30-2004 10:00 AM
Drawing Tools uspickle MapPoint 2006/2009 Discussion 2 01-13-2004 09:51 AM
Shapes behind roads? Anonymous MapPoint 2006/2009 Discussion 0 08-27-2003 10:35 AM
not to move shapes Manuel MapPoint 2006/2009 Discussion 2 05-19-2003 02:46 PM


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