Cannot Zoom if Bottom axis Labels are not visible

TeeChart for ActiveX, COM and ASP
Post Reply
Westwood
Newbie
Newbie
Posts: 4
Joined: Fri Aug 18, 2006 12:00 am

Cannot Zoom if Bottom axis Labels are not visible

Post by Westwood » Tue Aug 29, 2006 3:02 pm

When the bottom axis labels are made not visibile, the automatic zooming no longer works correctly. Is there a way to fix this?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Aug 30, 2006 8:43 am

Hi Westwood,

Thanks for reporting. I could reproduce the problem here and added it (TA05011727) to our defect list to be fixed for future releases.

In the meantime, a workaround is calling InternalRepaint as shown here:

Code: Select all

Private Sub Check1_Click()
    TChart1.Axis.Bottom.Labels.Visible = Not TChart1.Axis.Bottom.Labels.Visible
End Sub 

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 10
    TChart1.Environment.InternalRepaint 'Workaround
    TChart1.Axis.Bottom.Labels.Visible = False
End Sub

Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply