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)?
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. ...
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é
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.
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é
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)