Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

customizing text in balloons using ActiveX control

This is a discussion on customizing text in balloons using ActiveX control within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Printing Text Balloons
    By mefmv in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-16-2005, 02:57 AM
  2. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 11:16 AM
  3. Show information of text balloons
    By Jasmino in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-26-2004, 01:19 PM
  4. ActiveX Control
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-04-2002, 06:44 PM
  5. I am trying to build an activeX control using Map....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 06:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96