View Single Post

  #1 (permalink)  
Old 11-02-2007
tfmiltz tfmiltz is offline
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 48
Unhappy How to detect Shape Name on SelectionChange event

Hi folks

I'm using vb6

I am aware I can apparently tell what KIND of object has been selected in this event.

I wish to discern whether it is a shape object and further what name (I'll take ordinality even) the shape is in this event SelectionChange.

I create Shapetype 5's (Custom Polygon) using .AddPolyLine for the user.

I wish to allow the user multiple polygonal shapes on the same MapPointControl

problem I'm having is with pNewSelection is passed in this event.

I have studied posts here to learn about the casting apparantly of pNewSelection to the respective object you want, it is still unclear to me just what pNewSelection IS, short of a variance of object types depending on what is clicked, some generic object ? )

But I have had no success in discerning whether it is a Shape object and further - deriving it's name.

I DO assign a formal name to the shape as is recommended after its creation to bump up from ordinal reference.

To follow up in clarity - I wish to know when a custom poly is clicked upon , and further its name.

I'll ask about DriveTime shape (which I observe is type 5 too, no clue on discerning that from custom poly, I guess it is all in all at the end of the day) distinction later ! heh -

Any insights are welcomed.

Thanks in advance

Tim Miltz
Re-inventing the infinite sided polygon (wheel) one side at a time !
Reply With Quote