Community of VE/MapPoint Users and Developers
This is a discussion on customizing text in balloons using ActiveX control within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm a relative neophite to the MapPoint 2004 ActiveX object, although I've been working with C# and .NET for some ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| customizing text in balloons using ActiveX control I'm creating a visual mapping tool to show our technicians' routes in the field. The data is queried from our SQL 2000 server and imported into a System.Data.SqlClient DataSet. I'm then parsing through the DataRow collection in that dataset and creating pushpins for the technicians' route. My question is whether it's possible to customize the field text in the pushpin balloons. Currently, it's defaulting to the Name and address. I'd like to subsitute in some other, more relevant, information. Any help would be much appreciated. Andre |
| |||
|
As you add each pushpin get it object reference then you can easily change its properties. Dim objPin As MapPoint.Pushpin Set objPin = objMap.AddPushpin(objLoc) Then these properties can then be set for that particular pushpin. objPin.Name = Any text up to 23 characters - any more is truncated. objPin.Note = Any text including carriage returns and tabs if I remember correctly. objPin.Symbol = Numeric value corresponding to MapPoint Symbol. If you try and do this after adding all the pushpins then you have the problem of finding each pushpin again. Roger |
| |||
| followup question
Thanks for your help, I was able to add fields to my balloon. However, MP2004 is still adding the address information as before, and tacking on my custom information (pin.Notes) below that address. Is there any way of suppressing the address information, or at least customizing which fields show up in the address? The city, state and zip are not relevant for what we're trying to do. Thanks again, Andre |
| |||
|
How are you extracting the database info and adding the pushpin? Can you include the code? The field information must be being added at that stage. As a quick and dirty solution try: objPin = "" objPin = Information you want in the Pin.Note Roger |
![]() |
| Tags |
| activex, balloons, control, customizing, text |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printing Text Balloons | mefmv | MapPoint 2006/2009 Discussion | 2 | 12-16-2005 02:57 AM |
| Re: Keyboard control in mappoint activex control | djcapslock | MapPoint 2006/2009 Discussion | 1 | 03-10-2005 11:16 AM |
| Show information of text balloons | Jasmino | MapPoint 2006/2009 Discussion | 2 | 03-26-2004 01:19 PM |
| ActiveX Control | Anonymous | MapPoint 2006/2009 Discussion | 3 | 09-04-2002 06:44 PM |
| I am trying to build an activeX control using Map.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-24-2001 06:05 PM |