MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Re-open Is user drawn freeform Poly Closed thread

This is a discussion on Re-open Is user drawn freeform Poly Closed thread within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi folks Just checked the forum before posting for this problem Using vb6 + MapPointControl I let the user draw ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-09-2007
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 48
Re-open Is user drawn freeform Poly Closed thread

Hi folks

Just checked the forum before posting for this problem

Using vb6 + MapPointControl

I let the user draw a polygon - and I have them NOW use the right click functionality of Close Curve.

I observe the thread Anonymous posted - and it closed (the thread) with 'there does not seem to be a way to determine if the poly is closed other than assuming'

Anonymous had a neat point there that if the user Closes a poly - using Close Curve, indeed the last vertice is not the first - as I USED to do - requiring the user to click a 'Close' button I added - where I did come up with the same solution myself - use the first Location object array item as the last -

So, here I let the user draw their poly - and I let them 'Close Curve'

I need a way to 'stop collecting' mouse clicks.

and I'd prefer NOT to have them press a button, for - they just clicked ' Close Curve ' and I don't want them to have to go through the same hoop twice.

Anyone ever resolve or find a way to determine if a poly is closed ?

PolyHitTest ? some method like that ?
IsClosed ?

I don't see these - and need a way to stop collecting mouse clicks.

I do say - it might be my methodology.

I DO build an array of Location Objects on Mousedown

it may be I need to TRULY formally set a FreeForm shape object on the form

then - MP control takes care of itself -

Maybe this is the problem ? Has anyone ever created a freeform shape object with MP Control ? I just maintain my own Location object array - and then use .AddPolyLine - that's a step up from my older approach of using .AddLine heh - that was a nightmare, before I started to 'get' the MP OM better.

It may be I'm about to make a paradigmatic shift in MP OM to ludicrous speed ! and realize- oh, sheesh, I've STILL been re-inventing the wheel, MP can just drop a freeform shape object on the form and the control can manage auto line segmenting etc... instead of me collecting clicks - assigning from GetLocation then CalcPos -t hen Add PolyLine with that location object array.

Any insights ?

Tim Miltz
I'd drive a Fed-X truck, but I don't have a truck driving license !
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 11-09-2007
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 48
Re: Re-open Is user drawn freeform Poly Closed thread

By the way folks

I HAD a real nice solution to this.

I mandated CTRL be pressed (you get the Button value on Mousedown) to 'count' as a poly click.

this prevented more poly lines showing up as they went to edit their poly.

My client thought it would be counter-intuitive to the user to have to press CTRL to make a poly segment addition count.

I am playing with this without the CTRL mandate - and it's a mess.

I can trap the right click atleast to say - hey - don't add that as a new line.

But - without feedback on when Close Curve was selected ?

there is no way I can see to stop collection clicks on Left click to 'add a new poly segment' I mean, it re-opens the poly and adds a point.

I went to explore dropping a dedicated freeform 'shape' object on the form - MP doesn't like that.

Seems .AddPolyline is the only means to drop or present a custom poly on the form.

Sometimes I wish the app control was in my hands - heh, I'd say - the user will hold CTRL down and this will free up any other distractive left clicks -

I am more or less saying, once a custom poly creation is selected, I HAVE to collect the left clicks to know to extend my Location object array and recreate my shape with .AddPolyline

BUT - if the user right clicks and selects Close Curve, I have no way of knowing this

so if they left click again to go to 'move' their segment lines around ? I end up adding yet a NEW line segment - because there was no notification they are done.

I liked my use 'CTRL' button to make poly additions count.

really worked nice - but - since my offerings are put aside here - for 'the way things must be' ? for my client ?

any way to know if Close Curve was selected ?

Seems MP is a work in progress from MS, I wish they'd put more into MP, they do, but I wish they'd put as much as they put into re-inventing the Word Processor with Office what is it now ? 13 ? what could possibly be new in office ? oh yes, I forgot, it's 'live' now ? oh well.

Any thoughts ?

Tim Miltz
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 11-09-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: Re-open Is user drawn freeform Poly Closed thread

Hi,

Trap the mouseclicks as you already do but draw the poly yourself. then you have complete control.
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/re-open-user-drawn-freeform-poly-closed-thread-6724.html

Posted By For Type Date
Snap to a Road - MapPoint Articles - MP2K Magazine This thread Refback 11-09-2007 10:14 AM

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
Custom Poly Line segment Delete trapping tfmiltz MapPoint 2006/2009 Discussion 2 10-23-2007 09:02 PM
pushpins in manually drawn shape chupax MapPoint 2006/2009 Discussion 1 12-02-2006 01:34 PM
Can't GetActiveMap from a Thread discostu MapPoint 2006/2009 Discussion 1 06-08-2005 07:25 AM
is Mappoint thread safe Wilfried MapPoint 2006/2009 Discussion 5 04-06-2005 01:50 PM
Selecting a prviously drawn shape CSG MapPoint 2006/2009 Discussion 1 03-24-2004 10:08 AM


All times are GMT -5. The time now is 02:05 AM.


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

Borovets Ski
Enjoy the stunning scenery of the Rila Mountains when you book a Borovets Ski Holiday in Bulgaria. Holiday Hypermarket makes price comparison between competitors easy.

City Break Holidays
Top 10 City Breaks Holidays. Based on holidays booked this year, these are the most popular City Breaks Holidays for 2006

Holidays Jamaica
Holidays to Jamaica are a great way to immerse yourself in a different culture. Soak up some sun, indulge in some shopping, and relax at a beach resort. Use dealchecker.co.uk.

Jamaica Holidays
Jamaica holidays give you the chance to enjoy the vibrant cultural heritage and wonderful laid back atmosphere of the Caribbean. Book here!

Cheap Holidays
Hunting for cheap holidays? Well save time by booking online with ulookubook.com and you can even check out our top tips to help you hunt down a bargain holiday.

Family Holidays
Family holidays can be great fun. Check out your options at Travel.co.uk

Cheap Holidays to Fuerteventura
Don't do it the expensive way! Get information on cheap holidays to Fuerteventura at On The Beach, and enjoy the Canary Islands' best!


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