MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




customizing text in balloons using ActiveX control

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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
customizing text in balloons using ActiveX control

I'm a relative neophite to the MapPoint 2004 ActiveX object, although I've been working with C# and .NET for some time.

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
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 07-17-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 07-17-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-17-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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

Tags
activex, balloons, control, customizing, text


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
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


All times are GMT -5. The time now is 07:04 PM.


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


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 52 53 54