tfmiltz
11-09-2007, 02:48 AM
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 !
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 !