Hello.
I need to right align the legend box in the charts right upper corner. To do so I need to know the legend width to be able to calculate the desired Legend.Left. Can the with be found in code?
Best Regards,
Ragnar
Can te widht of the legend box be found?
Hi Ragnar,
yes, you can use the OnGetLegendRect event :
yes, you can use the OnGetLegendRect event :
Code: Select all
Private Sub TChart1_OnGetLegendRect(Left As Long, Top As Long, Right As Long, Bottom As Long)
Height = Bottom - Top
Width = Right - Left
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com