Print Page | Close Window

ZoomControl series visibility

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL Chart
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=2250
Printed Date: 16 Nov 2019 at 9:51pm


Topic: ZoomControl series visibility
Posted By: Rudolf Musil
Subject: ZoomControl series visibility
Date Posted: 12 Feb 2013 at 1:22pm

Hi,

i need show ZoomControl only, if mouse is in chart. So when i create chart (add pane, add series, etc), then set ZoomControl.Visible := False. When mouse enter chart area, ZoomControl is set to "Visible := True" but sometimes no series are shown in the ZoomControl.

Any idea?

Thanks.




Replies:
Posted By: Pieter Scheldeman
Date Posted: 13 Feb 2013 at 2:44am
Did you use 

  AdvGDIPChartView1.BeginUpdate;
  AdvGDIPChartView1.Panes[0].ZoomControl.Visible := true;
  AdvGDIPChartView1.EndUpdate;

To update the chart ?


Posted By: Rudolf Musil
Date Posted: 13 Feb 2013 at 3:17am

My fault .. BeginUpdate/EndUpdate does this trick.

Thank you.




Print Page | Close Window