Jump to content
Software FX Community

TipMask and ImageMap Question


User (Legacy)

Recommended Posts

When using the TipMask property  to generate an image map, i get errors

because the Chart.Axis(AXIS_X).Label has vbCrLf characters. I have to use

multiple lines to display the labels. Everything works fine if I remove the

LineFeed characters. Any help would be appreciated.

I'm setting the labels like this:

Chart1.Axis(AXIS_X).Label(1) = "African-" + vbcrlf + "American/" + vbcrlf +

"Black"

The ImageMap is generated like this:

Chart1.ImgMap = CHART_MAP_MOUSETIP

Chart1.ImgTags = "BORDER=0"

Chart1.TipMask = "Value:%v<br>Series:%l<br>Legend:%s"

I get "Unterminated String Constant" unless I remove the vbcrlf's.

Thanks,

Chris

Link to comment
Share on other sites

You could try using  chr(10)  instead of vbcrlf

Try changing:

> Chart1.Axis(AXIS_X).Label(1) = "African-" + vbcrlf + "American/" + vbcrlf

+

> "Black"

TO:

> Chart1.Axis(AXIS_X).Label(1) = "African-" & chr(10) & "American/" &

chr(10) & "Black"

It seems to work for us.

"Chris Strobel" <cstrobel@b2btech.com> wrote in message

news:05KIPS2SBHA.1444@webserver1.softwarefx.com...

> When using the TipMask property to generate an image map, i get errors

> because the Chart.Axis(AXIS_X).Label has vbCrLf characters. I have to use

> multiple lines to display the labels. Everything works fine if I remove

the

> LineFeed characters. Any help would be appreciated.

>

> I'm setting the labels like this:

> Chart1.Axis(AXIS_X).Label(1) = "African-" + vbcrlf + "American/" + vbcrlf

+

> "Black"

>

> The ImageMap is generated like this:

> Chart1.ImgMap = CHART_MAP_MOUSETIP

> Chart1.ImgTags = "BORDER=0"

> Chart1.TipMask = "Value:%v<br>Series:%l<br>Legend:%s"

>

> I get "Unterminated String Constant" unless I remove the vbcrlf's.

>

> Thanks,

> Chris

>

>

>

>

Link to comment
Share on other sites

This will be supported in the next service pack (scheduled to be released

next week).

CRLF combinations will be replaced with <br> when generating image maps if

CHART_MAP_MOUSETIP is On.

< and > will be replaced with < and > if CHART_MAP_ENCODETIP (&H020)

is added to the ImgMap property

--

Regards,

JC

"Chris Strobel" <cstrobel@b2btech.com> wrote in message

news:05KIPS2SBHA.1444@webserver1.softwarefx.com...

> When using the TipMask property to generate an image map, i get errors

> because the Chart.Axis(AXIS_X).Label has vbCrLf characters. I have to use

> multiple lines to display the labels. Everything works fine if I remove

the

> LineFeed characters. Any help would be appreciated.

>

> I'm setting the labels like this:

> Chart1.Axis(AXIS_X).Label(1) = "African-" + vbcrlf + "American/" + vbcrlf

+

> "Black"

>

> The ImageMap is generated like this:

> Chart1.ImgMap = CHART_MAP_MOUSETIP

> Chart1.ImgTags = "BORDER=0"

> Chart1.TipMask = "Value:%v<br>Series:%l<br>Legend:%s"

>

> I get "Unterminated String Constant" unless I remove the vbcrlf's.

>

> Thanks,

> Chris

>

>

>

>

post-2107-1392238769532_thumb.gif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...