Jump to content
Software FX Community

LegendBoxObj keeps the largest width


User (Legacy)

Recommended Posts

Hi!

I'm using a chart with LegendBox docked on the right and the content changes

(the legend is updated when the data in chart changes). The

LegendBoxObj.AutoSize is set to true, however, when I have a long legend and

I go back to a small legend, the legend box keeps the width it had with the

largest legend. Am I doing something wrong?

I joined some pics to show the problem...

Link to comment
Share on other sites

Sorry...  I just found what was wrong...

When I put new strings in the legend when rebinding the chart, I didn't

clear the legend. It worked fine, showing only the item found in the actual

chart, but the legend contained all the previous definition, leading to an

exagerated width based on previous values.

I just cleared the Legend before putting new items in it, works fine.

"Mathieu Lafontaine" <mathieulafontaine@NO_SPAMhotmail.com> wrote in message

news:C0gGIwdGFHA.1924@webserver3.softwarefx.com...

> Hi!

>

> I'm using a chart with LegendBox docked on the right and the content

changes

> (the legend is updated when the data in chart changes). The

> LegendBoxObj.AutoSize is set to true, however, when I have a long legend

and

> I go back to a small legend, the legend box keeps the width it had with

the

> largest legend. Am I doing something wrong?

>

> I joined some pics to show the problem...

>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...