Print Page | Close Window

Legend Position - Runtime

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL Chart
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=2722
Printed Date: 17 Nov 2019 at 5:45am


Topic: Legend Position - Runtime
Posted By: Godfrey Roy
Subject: Legend Position - Runtime
Date Posted: 20 Jun 2013 at 8:20am
Hi
Quick question, how does one update the position of the Legend in runtime in the DBAdvGDIPChartView?



Replies:
Posted By: Pieter Scheldeman
Date Posted: 20 Jun 2013 at 8:37am
With the Alignment property:

  AdvChartView1.Panes[0].Legend.Alignment

You can modify the position of the legend at runtime.

Relative to the chosen Alignment, you can add Left and Top properties to shift the legend:

  AdvChartView1.Panes[0].Legend.Left := 10;
  AdvChartView1.Panes[0].Legend.Top := 100;

Kind Regards, 
Pieter



Posted By: Godfrey Roy
Date Posted: 20 Jun 2013 at 9:07am
Thanks Pieter,
Found it earlier



Print Page | Close Window