Zoom with mouse: highlight color

When I use mouse scaling on the (TeeChart) chart (left button and drag at bottom right), the cursor draws a marquee rectangle for the zoom area. The Marquee line is barely visible in light gray. Is there a way to change the color of the highlight line (something like black, red, etc.) to make it more contrasting and easier to read?

I am using VCL TChart 4.04.

+3


source to share


1 answer


I think this is not possible in TChart v.4.04, or at least no property was found that could do this.

At least TChart v.8.03 (the one that ships with Delphi 2009) has properties TChart.Zoom.Brush

and TChart.Zoom.Pen

where you can set colors and other properties for the selection rectangle. So, if you have a newer version of TChart, you can use something like this:



procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Zoom.Pen.Width := 2;
  Chart1.Zoom.Pen.Color := clRed;
end;

      

+3


source







All Articles