making a pushpin a hyperlink

atom
10-03-2007, 09:58 AM
yet another quesiton from me.....

this is sort of a continuation from this thread:

http://www.mapforums.com/getting-lattitude-longitude-pushpin-6483.html


So my new/next question is, how can i make a pushpin a hyperlink?

what i want to do is if I click on a pushpin, I need it to link to a specific worksheet in a excel file.

For example, I have a pushpin named : xxxxºn x xxxºW and I want it to link to a worksheet in excel with the same name. Inside that worksheet will be a visual graph of what that pushpin represents (in my profession, it will be a fiber optic splice enclosure w/ a wiring diagram)

Wilfried
10-03-2007, 11:54 AM
Hi,

PushPin object has a Hyperlink property. You can give it the URL you want, for example:

PushPin pp = MP.ActiveMap.AddPushPin(..);
pp.Hyperlink = "http://blablabla";

atom
10-03-2007, 12:11 PM
awesome! where can i find the property for the pushpin?

right-click on the pushpin and properties obviously doesnt bring me to a CLI like that.

Wilfried
10-04-2007, 03:17 AM
Hi,

Sorry think I misunderstand. I meant programatically. I don't think you can do that in the standalone executable.

atom
10-04-2007, 04:24 AM
i understand that. can tell me how i would go about finding/programming that code?

Wilfried
10-05-2007, 02:50 AM
Hi,

You can use Mappoint in a program of your own. That can be any programming language, including VBA that comes with excell / access etc.

atom
10-05-2007, 06:11 AM
so what would I do? open my mappoint file in VB or something? it will then give me the code and i will have to scroll down until i find the code for the pushpins?

Wilfried
10-05-2007, 08:08 AM
Hi,

No it is not that simple. You have to install a programming language, or you can do all of it with Excel or Access because it has build in programming language called VBA. In that language you can make a form and put mappoint map on it writing some code. Same for pushpins etc. But you then run your own program, not mappoint standalone version.

I assume you have never done any programming ? In that case you have to study the thing first a little, it is not that hard if you dont want very complicated things. There are also some tutorials on this site where you can find some information and examples.

If you study them a little and think you can do it, then give it a try. Lots of people over here are able to help.

Eric Frost
10-10-2007, 12:37 PM
test -- please ignore this test

 
Web mp2kmag.com
mapforums.com