How to drag and resize the legend at runtime?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

How to drag and resize the legend at runtime?

Post by Chris.CHWU » Mon Aug 18, 2008 3:22 am

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.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Aug 18, 2008 8:30 am

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)).

Post Reply