Page 1 of 1

How to drag and resize the legend at runtime?

Posted: Mon Aug 18, 2008 3:22 am
by 14048132
When I use below code,

TChart1.Legend.CustomPosition = True
TChart1.Legend.AutoSize = False

How to drag and resize the legend rely on mouse at runtime?

Thanks.

Posted: Mon Aug 18, 2008 8:30 am
by Pep
Hello Chris,

you have to use the mouse events, like mouse down, mouse move, checking if legend has been clicked into it (Chart1.Legend.Clicked(x,y)).