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

Hiding Boxes around Label shapes

This is a discussion on Hiding Boxes around Label shapes within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a MapPoint.Shape that I created with oMap.Shapes.AddTextBox. oTextBox.Line.Visible = False does nothing, but oTextBox.Line.ForeColor = vbRed works fine. ...

  1. #1
    andrem is offline Junior Member White Belt
    Join Date
    Apr 2003
    Posts
    7

    Hiding Boxes around Label shapes

    I have a MapPoint.Shape that I created with oMap.Shapes.AddTextBox.

    oTextBox.Line.Visible = False does nothing, but

    oTextBox.Line.ForeColor = vbRed works fine. Any trick to hiding the boxes (just displaying the text)?
    Cheers

    André

  2. #2
    Martel is offline Junior Member Yellow Belt
    Join Date
    Feb 2003
    Posts
    28

    Hiding Boxes around Label shapes

    It seems that you can either make the fill invisible OR the line invisible. Not both. I played with this for a while because someone at work wanted the same thing. I added a mappoint control and two command buttons to a form. Programatically added a textbox oh so originally named "test." Set command_1 to make currMap.Shapes.Item("test").Fill.Visible = False and the other command_2 to set currMap.Shapes.Item("test").Line.Visible = False. If you click on the command_2 first, the line disappears. As soon as you click on command_1, the border returns and the fill disappears. Once the fill is invisible, you can change the color and weight of the line, but not its visibility.

    Even in Mappoint itself, once you select "No Fill," the line reappears. If you select a fill color, the option "No Line" reappears.

    Looks like it's a "feature" to keep anyone from adding info that looks like it came with Mappoint. Waiting to see if someone has a solution other than matching the line color to the background.

  3. #3
    andrem is offline Junior Member White Belt
    Join Date
    Apr 2003
    Posts
    7
    Hi Martel,

    thanks for the help. I figured out the same thing - now I just set the box to a white colour - less prominent, but still ugly when you're looking at lots of text at a higher level
    Cheers

    André

  4. #4
    Martel is offline Junior Member Yellow Belt
    Join Date
    Feb 2003
    Posts
    28

    You can display text as a "symbol"

    One trick, if you aren't customizing too many text boxes, is to create a bitmap image and set it as a symbol. Mappoint uses a mask if the UseTransparency property is set to true and the background becomes transparent (if the background is all the same color).

    The disadvantage of doing this is you have to have a pushpin, pushpin set or multiple symbol map to assign the symbol to a location on the map. I can just see it....oMap.Datasets("CustomSymbols")....

    Works when I know what text I need to display in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Label Waypoints
    By MD2000 in forum MapPoint Desktop Discussion
    Replies: 10
    Last Post: 11-07-2006, 03:57 AM
  2. Mapping PO Boxes
    By MeliDe in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-21-2005, 02:42 PM
  3. Label Hiding Feature on MapPoint
    By zarniminhtet in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-03-2005, 04:25 PM
  4. Weird problem with MapPoint shapes and Combo Boxes
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 03-24-2003, 06:34 AM
  5. Text Boxes
    By ClactonEssex in forum Wish List
    Replies: 0
    Last Post: 12-10-2002, 08:52 AM

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